From owner-freebsd-hackers Wed Feb 20 12: 3:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 32F9737B402 for ; Wed, 20 Feb 2002 12:03:26 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16dcxY-0007b6-00 for freebsd-hackers@FreeBSD.ORG; Wed, 20 Feb 2002 20:03:24 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id 02CEB13040 for ; Wed, 20 Feb 2002 21:03:23 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 6002) id B624C22590; Wed, 20 Feb 2002 21:03:23 +0100 (CET) Date: Wed, 20 Feb 2002 21:03:23 +0100 From: Cliff Sarginson To: freebsd-hackers@FreeBSD.ORG Subject: Re: A question and a suggestion about loadable modules Message-ID: <20020220200323.GB5722@raggedclown.net> References: <20020219185856.GB1191@raggedclown.net> <20020219205809.GA18746@dan.emsphone.com> <20020220190906.GJ3600@raggedclown.net> <20020220194240.GC4350@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020220194240.GC4350@dan.emsphone.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message