Date: Sun, 1 Aug 1999 22:42:01 +0300 (EEST) From: Juha Nurmela <junki@qn-lpr2-165.quicknet.inet.fi> To: hackers@FreeBSD.ORG Subject: Proposing argv for klds and preloaded modules Message-ID: <Pine.BSF.4.05.9908012157340.591-100000@pena.oh5nxo.ampr.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9908012157340.591-100000>