New system call and User space header file

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

 



Hi all,
 
If I am adding a new system call sys_myroutine into the kernel then why is it necessary to have header file in user space like this -
 
#include <unistd.h>
 
_syscall2(int, myroutine, int arg1, int, arg2);
 
What does it do when a user program calls this system call ? Can somebody explain this to me ?
 
Thanks in advance,
Sachin

[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