devfs
[Top] [All Lists]

module autoloading

To: devfs@xxxxxxxxxxx
Subject: module autoloading
From: Chris the Elder <chippo@xxxxxxxxxxxxxxx>
Date: Tue, 25 Apr 2000 10:40:13 +0200
Sender: owner-devfs@xxxxxxxxxxx
Howdy,

I've come a long way since my last (rather lost) email.  I'm
now wondering why I need various lines in devfsd.conf to
get the correct modules loaded.

My /etc/conf.modules looks like this:  (BTW, in the on-line
FAQ, at one point this is called /etc/modules.conf)
--------------------------------
alias           char-major-107 3dfx
alias           parport_lowlevel parport_pc
alias           eth0                    3c59x
alias           gen_sound         es1371

# Generic section: do not change

# Soundcard
alias           /dev/sound      gen_sound
alias           /dev/audio      gen_sound
alias           /dev/mixer      gen_sound

[ ----- most of this file (which is distributed
with devfs snipped) ----- ]

alias           /dev/stdout     off
alias           /dev/stderr     off
-------------------------------

Now the docs indicate that this is what I need to make
module autoloading work.  However, it doesn't.  I have
autoloading working, but I had to edit devfsd.conf to
organise this.  Here is what I did.

-------------------------------
REGISTER        .*              MKOLDCOMPAT
UNREGISTER      .*              RMOLDCOMPAT

LOOKUP          mixer           MODLOAD
LOOKUP          ttyS0           MODLOAD
LOOKUP          lp0             MODLOAD
LOOKUP          ide/cd/c0b1t0u0 MODLOAD
LOOKUP          3dfx            EXECUTE         /bin/mknod $devpath c
107 0
REGISTER        misc/psaux      CFUNCTION       GLOBAL symlink $devname
mouse
UNREGISTER      misc/psaux      CFUNCTION       GLOBAL unlink mouse
-------------------------------

What I thought that I wouldn't need would be those
LOOKUP/MODLOAD lines.

Any help would be appreciated,
chippo


<Prev in Thread] Current Thread [Next in Thread>
  • module autoloading, Chris the Elder <=