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: http://www-124.ibm.com/devreg/ )
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:31 EST