From owner-freebsd-hackers Tue Aug 3 9:47: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (castles502.castles.com [208.214.165.66]) by hub.freebsd.org (Postfix) with ESMTP id 9095B152C3 for ; Tue, 3 Aug 1999 09:46:59 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id JAA03586; Tue, 3 Aug 1999 09:41:01 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199908031641.JAA03586@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Peter Wemm Cc: Juha.Nurmela@quicknet.inet.fi, "Daniel C. Sobral" , Warner Losh , Chris Costello , hackers@FreeBSD.ORG Subject: Re: Proposing argv for klds and preloaded modules In-reply-to: Your message of "Tue, 03 Aug 1999 22:47:09 +0800." <19990803144709.A75771C1E@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Aug 1999 09:41:01 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Juha Nurmela wrote: > > > > > > On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > > > > > Actually... Loader passes a string. It seems the kldcode is passing > > > argv[]. Juha, you sure you have they both working the same way (from > > > a module's perspective)? > > > > It's splatted together, by just putting ' ' between words, > > somewhere in there. Search for strbuf > > > > Juha > > Don't forget, there are zero or more modules per file. Which one gets the > arguments? Coda (for example) is structured so that it has two modules, one > device (codadev) and one vfs (coda). This is why Warner's X-resource-like proposal is the only method for passing parameters to modules that I am likely to accept. argv/argc and getopt() are just not good enough. If someone want to implement a simple resource matcher, you could start by coming up with a tiny, tidy glob() for the kernel. We can use it elsewhere as well... -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message