Re: Help Adding system call 2.6.19

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-02-06 at 11:32 +0100, Erik Mouw wrote:
> 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.

man syscall

why not use that?
-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux