From owner-freebsd-hackers Sun Aug 1 14:35: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from qn-lpr2-98.quicknet.inet.fi (qn-lpr2-165.quicknet.inet.fi [194.251.102.165]) by hub.freebsd.org (Postfix) with ESMTP id E688414DE0 for ; Sun, 1 Aug 1999 14:35:01 -0700 (PDT) (envelope-from junki@qn-lpr2-165.quicknet.inet.fi) Received: from localhost (junki@localhost) by qn-lpr2-98.quicknet.inet.fi (8.9.3/8.9.1) with ESMTP id AAA09689; Mon, 2 Aug 1999 00:34:26 +0300 (EEST) (envelope-from junki@qn-lpr2-165.quicknet.inet.fi) Date: Mon, 2 Aug 1999 00:34:26 +0300 (EEST) From: Juha Nurmela X-Sender: junki@pena.oh5nxo.ampr.org Reply-To: Juha.Nurmela@quicknet.inet.fi To: Chris Costello Cc: 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? Yes, but (this might be a trademark ;) commonly the arguments would be used during the sysinit->attach, and at that time sysctl has not yet been able to change anything. Use of sysctl would require a sidestep from attach and later continuation with a sysctl_proc. Not a problem, but inconvenient, IMHO. And it's analogous to executing, they too can get arguments. Juha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message