Re: How to package device files?
On Fri, 31 May 2002 20:31, Andreas Metzler wrote:
> Steve Haslam <firstname.lastname@example.org> wrote:
> > On Fri, May 31, 2002 at 05:33:22PM -0000, Grant Edwards wrote:
> >> I'm also confused about the chicken/egg issue when using devfs.
> >> My driver module gets loaded when somebody opens a device file.
> >> If devfs device files are created at the request of driver
> >> modules, how do they get autoloaded in the first place?
> > aiui devfsd can load a module when an attempt is made to access a
> > device node that doesn't exist, a la autofs.
> Hmm, according to the manpage devfsd only manages the symlinks for the
> "classic" names (/dev/hda -> ide/host0/bus0/target0/lun0/disc), the
> modules are automatically loaded by kmod, using alias-definitions like
> alias /dev/hdd ide-cd
If you have an appropriate LOOKUP entry in the config file (default is to
LOOKUP everything) then devfsd will run "modprobe /dev/hdd" when you run a
command such as "ls -l /dev/hdd". Then modprobe needs the alias you
specified to be able to load the CD driver.
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org