From owner-freebsd-hackers Tue Jul 11 18:26:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ihemlsrv.firewall.lucent.com (ihemail1.lucent.com [192.11.222.161]) by hub.freebsd.org (Postfix) with ESMTP id 25A0C37BA3D; Tue, 11 Jul 2000 18:26:09 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from ihemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id VAA14313; Tue, 11 Jul 2000 21:26:08 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id VAA14306; Tue, 11 Jul 2000 21:26:07 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id VAA10340; Tue, 11 Jul 2000 21:26:06 -0400 (EDT) Message-ID: <396BC931.6ABF2C85@lucent.com> Date: Tue, 11 Jul 2000 21:26:09 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Client Access Broadband Systems X-Mailer: Mozilla 4.73 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: FreeBSD Hackers Subject: Re: Module parameters? References: <200007120116.SAA00755@mass.osd.bsdi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > If you say "kldload foo", you load the file foo.ko. However, that file > may contain more than one module. I didn't know that was possible (i.e. supported)... > The hints mechanism is what we are currently using to pass in the > information that used to be in the kernel configuration file. Each hint > is an entry in the kernel environment space; these are currently read > from a file by the loader when it's loading the kernel, but we must also > have an interface for setting these after the system starts. Gee, you mean you're not gonna make me reboot every time I change a setting like Windows does? :-P Actually they've gotten rid of most of that baloney in Windows2000, so we better not be worse! > In addition, it should be possible to pass arguments to a module as you > load it, however it's not clear yet that this is the "clean" way to do it. > I think the initial approach is going to look like this: > > # kenv hint.foo.0.parameter=15 > # kldload foo > > ie. the hints can be set entirely independently of the module load. Sounds reasonable to me... Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message