Date: Thu, 25 Feb 1999 00:03:21 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Gurudatt Shenoy <gurudatt@cs.tamu.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Question: Adding a new system call Message-ID: <19990225000321.A16445@scientia.demon.co.uk> In-Reply-To: <Pine.GSO.3.96.990221122904.10095A-100000@dilbert> References: <Pine.GSO.3.96.990221122904.10095A-100000@dilbert>
next in thread | previous in thread | raw e-mail | index | archive | help
Gurudatt Shenoy wrote: > I added a new system call (new_write) to the freebsd (2.2.7) kernel. The > kernel compiled successfully but when I tried to use the call in a > program, I got the following error: > "Undefined symbol '_new_write' referenced from text segment" > > > What am I missing? The steps I followed to add my system call were: > > 1. Declared a new entry in syscalls.master > 326 STD 0 BSD { void new_write(void);} > (325 is currently the last entry in syscalls.master) > 2. Created a new file (called new_write.c) in sys/kern, containing the > function definition for new_write I'm not exactly a kernel guru, but you might have to add kern/new_write.c standard to /sys/conf/files so the kernel build recognises it. I don't think the kernel build process will automatically use everything it finds in /sys/kern and other places. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990225000321.A16445>