Re: [ANNOUNCE] udev 021 release

From: Greg KH
Date: Wed Mar 03 2004 - 10:22:55 EST


On Wed, Mar 03, 2004 at 07:22:17AM -0500, Ed Tomlinson wrote:
> On March 03, 2004 04:56 am, Michael Weiser wrote:
> > Normally with static /dev one has a /dev/dsp device for example. As soon
> > as an application tries to open it the kernel would try to load a module
> > "sound" or "char-major-something" if sound support isn't compiled into
> > it. Now with udev I'll never get /dev/dsp in the first place and there's
> > no mechanism like devfs's file open monitoring and subsequent device
> > file creation. So my idea is to initialise /dev with some static files,
> > for hardware I know is there but hasn't had a driver loaded yet. My
> > question is: Is there a nicer and more elegant way than just unpacking a
> > tarball into /dev before starting udevd? A tarball would also break a
> > (theoretical) use of dynamic major/minor numbers by the kernel.
>
> Would it be possible to have something in the module itself? i.e. We create
> a new macro to add info that a script can use. This info could live in a new file
> in lib/modules or in the actual module. This could be used to create the static
> setup dynamicly.
>
> This item keeps coming up as the one feature that devfs has and udev
> does not. It keeps getting dismissed. Users seem to actually want it...

Users need to learn that the kernel is changing models from one which
automatically loaded modules when userspace tried to access the device,
to one where the proper modules are loaded when the hardware is found.

Note that this is a much more sane model due to removable devices, and
instances of multiple types of the same kind of devices in the same
system.

So no, udev is not going to handle this "issue" except in the case of
removable devices and their partitions. Which is already working in
udev today.

thanks,

greg k-h
-
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/