Re: [PATCH] 2.5.14 IDE 56

From: Greg KH (
Date: Tue May 07 2002 - 13:02:37 EST

On Tue, May 07, 2002 at 11:29:10AM -0700, Patrick Mochel wrote:
> Which gives you a default name for the device. With /sbin/hotplug, simple
> userspace policy, and symlinks in /dev, you can emulate the current device
> hierarchy. So, you get a device naming solution that gives you only the
> device names for the devices you have.
> This approach also de-emphasizes the dependency on major and minor
> numbers. If device nodes are created in kernel space initially, userspace
> doesn't need to know what the major/minor is for a particular device. The
> symlink to the device node is all that's need to operate on the device.
> Without the need to coordinate between kernel and userspace, at least some
> majors/minors can be dynamically allocated as the subsystems and devices
> are registered with the core. (These can then be exported via files in
> driverfs). (This is similar to the dynamic allocation of minor numbers in
> the USB subsystem that showed up recently...)

And is exactly why this showed up in the USB subsystem :)

> Oh, and it's with a modern, clean filesystem, 1/5 the size of devfs.

And it removes the dependency of devfsd and its interface, replacing it
with the existing /sbin/hotplug interface. This allows different people
to implement different naming schemes if they so desire, moving naming
policy out of the kernel into userspace, where it belongs.

Yes, there will probably be a "default" naming scheme, matching what we
have today, but the ability to replace it with another one is _so_ much
easier than having to try to tie into devfsd (like the devreg
implementation does: )

greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:31 EST