Subject: Re: How do I create a include-file to match my new syscall? (fwd)
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Espen Jorde; IFI; H97 <espenjo@unik.no>
List: tech-kern
Date: 03/08/2000 10:01:03
Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de> writes:

> > Part of the work for my master thesis involves adding some system
> > calls to the kernel.
> 
> Fun, what's it about? :)

I'm trying to make yet another in-kernel datapath, so that I can send
out enormous amounts of non-important multimedia using multicast. (This
is the short, short version:-) )

> 
> 
> > 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 :-).

I'm really exited! (Thanks!)

> 
> 
>  - Hubert
> 

-- 
:-)EspeN

*********** Espen Jorde ****************************************************
URL:                         Telefon:     UNIK:       Hjemme:     Mobil: 
http://www.unik.no/~espenjo             6484 4772   2256 6916   988 13 082