From owner-freebsd-hackers Wed Aug 5 15:42:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07240 for freebsd-hackers-outgoing; Wed, 5 Aug 1998 15:42:00 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from IAEhv.nl (iaehv.IAEhv.nl [194.151.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07234 for ; Wed, 5 Aug 1998 15:41:54 -0700 (PDT) (envelope-from wjw@surf.IAE.nl) Received: from surf.IAE.nl (root@surf.IAEhv.nl [194.151.66.2]) by IAEhv.nl (8.8.7/8.8.7) with ESMTP id AAA07359 for ; Thu, 6 Aug 1998 00:41:38 +0200 (CEST) Received: (from wjw@localhost) by surf.IAE.nl (8.8.7/8.8.7) id AAA05242 for hackers@freebsd.org; Thu, 6 Aug 1998 00:41:37 +0200 (MET DST) From: Willem Jan Withagen Message-Id: <199808052241.AAA05242@surf.IAE.nl> Subject: Adding system calls To: hackers@FreeBSD.ORG Date: Thu, 6 Aug 1998 00:41:37 +0200 (MET DST) Reply-To: wjw@IAEhv.nl X-NCC-RegID: nl.iae X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, This must be a FAQ, but I can not find it. :-( What/were is the receipe to add new system calls. I'd like to add my own sysctl_* 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) - What parameters are a bad idea to transfer from user to kernel space? And answers to questions like: - Where can I find the "user"-data - Hoe to I return results for "call-by-ref" parameters Sounds like there should be at least some info on this. --WjW -- Internet Access Eindhoven BV., voice: +31-40-2 393 393, data: +31-40-2 606 606 P.O. 928, 5600 AX Eindhoven, The Netherlands Full Internet connectivity for only fl 12.95 a month. Call now, and login as 'new'. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message