On Tue, Feb 06, 2007 at 10:32:15AM +0530, Dang wrote: > Hi, I am trying to add a new system call in linux kernel 2.6.19. > Adding all the required kernel code is fine but compilation of user > space code is giving some issues. > > The _syscall0, _syscall1, .... interface that was available till > 2.6.17 seems to have been discontinued. _syscall0... marcos are > defined in asm-i386/unistd.h but inside kernel block. > > Can anybody give me some pointers as to how system call are to be > invoked 2.6.18 onwards? This is what I use: /* stupid hack to get _syscall0() and _syscall3() macros */ #define __KERNEL__ #include <linux/unistd.h> #undef __KERNEL__ Not nice, but it works. Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
Attachment:
signature.asc
Description: Digital signature