On Wed, Feb 20, 2002 at 01:42:40PM -0600, Dan Nelson wrote:
> In the last episode (Feb 20), Cliff Sarginson said:
> > On Tue, Feb 19, 2002 at 02:58:09PM -0600, Dan Nelson wrote:
> > > In the last episode (Feb 19), Cliff Sarginson said:
> > > > Hello,
> > > > Someone suggested this may be the right list for this.
> > > > 
> > > > - Has consideration in the loadable modules implementation been given
> > > >   to a module dependency facility, in the manner of "depmod" in Linux ?
> > > >   So that any module loaded will automagically load modules it depends
> > > >   on to run ?
> > > 
> > > See the module(9) and MODULE_DEPEND(9) manpages.
> > > 
> > Ok, well the facility exists I see.
> > Is it used ?
> 
> Yes. 
> 
> $ cd /sys
> $ grep MODULE_DEPEND **/*.c | wc -l
>    137
> $
> 
> NIC drivers sometimes require miibus, USB drivers require usb, SCSI
> card drivers require cam, etc.
> 

So why, for example, if you say need a NIC driver that requires miibus, do you have
to specify loading of miibus..this is really at the bottom of my
question. 
Shouldn't a module dependency system load the required drivers first ?
The reason this popped up in my mind, as I think I mentioned, is that
the port drm-kmod, for DRI on certain cards, is meaningless without
the "agp" module being loaded. So why doesn't kldload (I suppose I
mean the program rather than the system call) work all this out ?

Am I being dumb ?

-- 
Regards
   Cliff Sarginson -- <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to