Date: Wed, 20 Feb 2002 21:03:23 +0100 From: Cliff Sarginson <csfbsd@raggedclown.net> To: freebsd-hackers@FreeBSD.ORG Subject: Re: A question and a suggestion about loadable modules Message-ID: <20020220200323.GB5722@raggedclown.net> In-Reply-To: <20020220194240.GC4350@dan.emsphone.com> References: <20020219185856.GB1191@raggedclown.net> <20020219205809.GA18746@dan.emsphone.com> <20020220190906.GJ3600@raggedclown.net> <20020220194240.GC4350@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 -- <csfbsd@raggedclown.net> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020220200323.GB5722>