Re: udev sysfs docs Re: State of devfs in 2.6?

Måns Rullgård
2003-12-09T09:26:11Z

Xavier Bestel <xavier.bestel@free.fr> writes:

>> A: That is correct. If you really require this functionality, then
>> use devfs. There is no way that udev can support this, and it
>> never will.
>
> That's something I don't understand: I thought that with a well
> configured hotplug+udev system, you'll never have to worry about loading
> drivers on device-node open() because all drivers should be auto-loaded
> and all device-nodes should be auto-created.
>
> Am I wrong ?

Let me give an example. Hotplug will automatically load the ALSA
drivers for my sound card, and /dev/snd/* are created (by devfs or
udev, it doesn't matter for now). Suppose that, some time, I run a
program that tries to use OSS for sound. Now, the ALSA OSS emulation
is not loaded by hotplug, and I don't want it to. It's nice to have
snd-pcm-oss automatically loaded when some legacy application tries to
use /dev/dsp.

--
Måns Rullgård
mru@kth.se