Re: looking for document for system calls

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

 



> I'm interested in that too! First: after adding an entry to the unistd.h is
> it necessary to recompile the kernel? And then? 

u will also have to add an entry in arch/<i386 for example>/kernel/entry.S
and recompile the kernel if u want to have ur system call permenantly.
But think twice before adding a new system call.
It is not adivsible unless u really have a need.
if u want to add a sytem call dynamically by directly altering the 
sys_call_table thru a module u need not add anything in unistd.h or entry.S 
and no need to recompile the kernel.

>How applications can use
> the new sys call?
use _syscallX(....,...) macros defined in asm/unistd.h
from the userland.

if i m wrong others please clear it.

regards,
mohan.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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