From owner-freebsd-hackers Sat Nov 13 12:48:35 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from io.yi.org (24.66.174.118.bc.wave.home.com [24.66.174.118]) by hub.freebsd.org (Postfix) with ESMTP id C045214CF2 for ; Sat, 13 Nov 1999 12:48:28 -0800 (PST) (envelope-from jake@checker.org) Received: from io.yi.org (localhost [127.0.0.1]) by io.yi.org (Postfix) with ESMTP id 6CC121FCC; Sat, 13 Nov 1999 12:48:33 -0800 (PST) X-Mailer: exmh version 2.1.1 10/15/1999 To: "Parthasarathy M. Aji" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: System Call In-reply-to: Your message of "Sat, 13 Nov 1999 03:10:06 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Nov 1999 12:48:33 -0800 From: Jake Burkholder Message-Id: <19991113204833.6CC121FCC@io.yi.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Dear Sir, > How do I set up a system call of my own in the FreeBSD kernel? > 1) Do I just change the syscalls.master and my new function and rebuild > the entire kernel?. If so where do I put my implementation files? in the > same directory as syscalls.master exists? I am new to writing custom system > calls.. Thank you, I think the easiest way to do this is with a kld. It's less intrusive and allows you to unload/recompile/reload without recompiling the whole kernel and rebooting. There should be a simple example of how to do this in /usr/share/examples/kld/syscall. Also check out http://thc.inferno.tusculum.edu/files/thc/bsdkern.html hope this helps... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message