From owner-freebsd-hackers Sun Aug 1 12:42:50 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 9E20A14CC2 for ; Sun, 1 Aug 1999 12:42:41 -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 WAA00639 for ; Sun, 1 Aug 1999 22:42:01 +0300 (EEST) (envelope-from junki@qn-lpr2-165.quicknet.inet.fi) Date: Sun, 1 Aug 1999 22:42:01 +0300 (EEST) From: Juha Nurmela X-Sender: junki@pena.oh5nxo.ampr.org Reply-To: Juha.Nurmela@quicknet.inet.fi To: hackers@FreeBSD.ORG Subject: Proposing argv for klds and preloaded modules 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 Hello. 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. Following url proposes patches to make a new syscall kldload(char *pathname, char **argv, struct kldload *) and keep old way in okldload(pathname). Modules can call module_get_file_argstr(mod) to get these arguments if they so prefer, this is the same with preloaded/kldloaded cases. The third argument, struct kldload, is unused. Arguments are catted together, blank separated, this was the existing way preloading did it (subject to change ?). Patches are against a recent (week ?) -CURRENT, original and modified files are also available. Juha http://qn-lpr2-165.quicknet.inet.fi:22/kldargs/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message