Re: devfs vs udev, thoughts from a devfs user

From: Mike Bell
Date: Tue Feb 10 2004 - 13:04:04 EST


On Tue, Feb 10, 2004 at 09:01:57AM -0800, Greg KH wrote:
> Did you read:
> http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev_vs_devfs

While we're at it...

> Problems:
> 1) devfs only shows the dev entries for the devices in the system.

Why is that a bad thing? Why should I want to see dev entries for firewire
drives on my 486 or LPT1 on my legacy-free laptop?

> 2) devfs does not handle the need for dynamic major/minor numbers

It does as well as udev does. You say it yourself, "if the kernel switches to
dynamic major/minor". The same is true of devfs. It was designed for dynamic
major/minors, and the static ones were for backward compatibility with static
/devs.

> 4) devfs does provide a deamon that userspace programs can hook into
> to listen to see what devices are being created or removed.

How is that a problem?

> Constraints:
> 1) devfs forces the devfs naming policy into the kernel. If you
> don't like this naming scheme, tough.

Not true at all. If you don't like the naming scheme, run devfsd. Just
like running udev, only unlike udev at least you have device files even
if the daemon's not running.

> 2) devfs does not follow the LSB device naming standard.

No, but the userspace daemon attached to it could do so, just like udev.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/