From owner-freebsd-hackers Mon Aug 2 4:17:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from lion.butya.kz (butya-gw.butya.kz [194.87.112.252]) by hub.freebsd.org (Postfix) with ESMTP id C4C831519D for ; Mon, 2 Aug 1999 04:17:24 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by lion.butya.kz with local-esmtp (Exim 2.12 #1) id 11BG52-000AEH-00; Mon, 2 Aug 1999 18:16:32 +0700 Date: Mon, 2 Aug 1999 18:16:32 +0700 (ALMST) From: Boris Popov To: Chris Costello Cc: Juha.Nurmela@quicknet.inet.fi, hackers@FreeBSD.ORG Subject: Re: Proposing argv for klds and preloaded modules In-Reply-To: <19990801162055.E18888@holly.dyndns.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 1 Aug 1999, Chris Costello wrote: > On Sun, Aug 01, 1999, Juha Nurmela wrote: > > > > Sometimes it would be handy to pass a commandline > > to a kld, preloaded modules already support > > arguments. kldload(2) unfortunately has only > > the pathname.ko argument. > > Is this really a problem? Can the administrator not use > sysctl instead? It is not always possible. Some device drivers (both hardware and software) require an arguments that needed at init/attach time. IMO, args should be passed in usual manner via argv[] and argc with plain get_opt() in libkern. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message