Date: Sat, 13 Nov 1999 12:48:33 -0800 From: Jake Burkholder <jake@checker.org> To: "Parthasarathy M. Aji" <partha@cs.duke.edu> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: System Call Message-ID: <19991113204833.6CC121FCC@io.yi.org> In-Reply-To: Your message of "Sat, 13 Nov 1999 03:10:06 EST." <Pine.GSO.4.20.9911130309440.10893-100000@moe.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991113204833.6CC121FCC>