Re: allocate an official device major number for virtio device?

From: Richard Weinberger
Date: Thu Mar 03 2016 - 17:35:36 EST


On Thu, Mar 3, 2016 at 11:12 PM, Jeff Sharkey <jsharkey@xxxxxxxxxxx> wrote:
> Adding a bit more context, in Android when we receive a uevent about a
> new disk we use a separate userspace utility (sgdisk) to inspect the
> partitions it contains, and we construct our own mknod() for the
> partitions that we're interested in. (We're doing this manually
> because Android doesn't have devtmpfs.)

Why don't you just enable devtmpfs? :-)

--
Thanks,
//richard