From owner-freebsd-hackers Tue Jul 11 18:47: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp02.teb1.iconnet.net (smtp02.teb1.iconnet.net [209.3.218.43]) by hub.freebsd.org (Postfix) with ESMTP id D5A8A37BA5E; Tue, 11 Jul 2000 18:47:05 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-151-198-135-85.nnj.dialup.bellatlantic.net [151.198.135.85]) by smtp02.teb1.iconnet.net (8.9.1/8.9.1) with ESMTP id VAA28314; Tue, 11 Jul 2000 21:38:57 -0400 (EDT) Message-ID: <396BCC81.DA54BE70@bellatlantic.net> Date: Tue, 11 Jul 2000 21:40:17 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: "Gary T. Corcoran" , Archie Cobbs , Warner Losh , Mike Smith , FreeBSD Hackers Subject: Re: Module parameters? References: <3453.963351517@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > > In message <396B8BBB.4AA1867D@lucent.com>, "Gary T. Corcoran" writes: > > >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 > > I have a much simpler idea: > > The loader needs to pass an argc+argv to the modules "configure" > routine, and the module can do whatever it damn pleases with > the passed arguments. Would be good to provide some standard routine somewhat like getopt() so that each module won't reimplement it by itself. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message