From owner-freebsd-hackers Tue Jul 11 14: 4:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from auemlsrv.firewall.lucent.com (auemail1.lucent.com [192.11.223.161]) by hub.freebsd.org (Postfix) with ESMTP id 0736937B64D; Tue, 11 Jul 2000 14:04:06 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from auemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id RAA26196; Tue, 11 Jul 2000 17:04:04 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id RAA26185; Tue, 11 Jul 2000 17:04:03 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id RAA17625; Tue, 11 Jul 2000 17:03:52 -0400 (EDT) Message-ID: <396B8BBB.4AA1867D@lucent.com> Date: Tue, 11 Jul 2000 17:03:55 -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: Archie Cobbs Cc: Warner Losh , Mike Smith , FreeBSD Hackers Subject: Re: Module parameters? References: <200007112019.NAA38790@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Archie Cobbs wrote: > > Warner Losh writes: > > In message <39665C10.9C316392@lucent.com> "Gary T. Corcoran" writes: > > : I was wondering if you (or anyone on this list) has had time > > : to add module parameters to kldload? (and before anyone suggests > > : it, sorry, but I am barely able to squeeze out enough time to > > : even work on this unofficial driver, I can't work on kldload) > > > > You can use the hint mechanism that we've developed for other things. > > Another possibility is the netgraph binary <-> ASCII conversion stuff: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_parse.h?rev=1.3 Are you suggesting that these routines could be used to easily add parameters to kldload? (hint, hint) No, I know it's not that easy. We need to be able to do things like have "TransmissionMode=4" on the kldload command line, and have that parse the decimal value 4, and then go into the module and set the value of the TransmissionMode variable to actually be 4 immediately after loading the module into memory, before any of its subroutines are called. This is what the Linux module loader allows, and it's extremely useful... Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message