Subject: Re: How do I create a include-file to match my new syscall? (fwd)
To: None <espenjo@unik.no>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 03/07/2000 22:15:13
> Part of the work for my master thesis involves adding some system
> calls to the kernel.

Fun, what's it about? :)


> After some time I have figured out how to add my own system call. I
> have done this successfully with a 1.4.1 kernel.
> 
> Now my problem is how to access syscalls from user-space. I can call
> them by using "syscall(<syscallnumber>, arguments)". But i would love
> to be able to do something like this:
> 
> #include <foo.h>
> 
> foo(i, j, k);
> 
> Can anybody give me a hint on where I should look? Which directory
> should I put my .h file for it to compile correctly and end up in
> /usr/include. How should my .h file look. Any good examples?

Have a look at src/lib/libc, it contains all the stubs for system calls
(plus a lot of other stuff :-).


 - Hubert