Date: Thu, 13 Aug 1998 13:33:32 -0700 From: Mike Smith <mike@smith.net.au> To: wjw@IAEhv.nl Cc: hackers@FreeBSD.ORG Subject: Re: Adding system calls Message-ID: <199808132033.NAA00878@dingo.cdrom.com> In-Reply-To: Your message of "Thu, 06 Aug 1998 00:41:37 %2B0200." <199808052241.AAA05242@surf.IAE.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
> > What/were is the receipe to add new system calls. > I'd like to add my own sysctl_* calls. You don't feel that you can overload the current calls? > Are there any directives on what "design" to use while defining these calls. > Like: > - Use only one syscall as a multiplexer > (Which created a not so trivial mess is the current sysctl) This is good if all the subcalls share similar data. > - What parameters are a bad idea to transfer from > user to kernel space? Just the ones you need. > And answers to questions like: > - Where can I find the "user"-data Such as? > - Hoe to I return results for "call-by-ref" parameters Use copyin/copyout and the fu*/su* calls, all of which have manpages in -current. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com 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?199808132033.NAA00878>