There is no guide for system calls that I know of, this is what you need to paste into the source code.
This header file is useful because it has many system calls prototyped with arguments:
include/linux/syscalls.h
It contains definitions, for example:
asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid); asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); asmlinkage long sys_getpgid(pid_t pid); asmlinkage long sys_getpgrp(void); asmlinkage long sys_getsid(pid_t pid); asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
The arch syscalls header file contains the rest of the system calls, which depend on the form:
arch/x86/include/asm/syscalls.h
(these files are equal to 2.6.32 - earlier / later versions of the kernels may have different file / directory names).
Keep in mind that the internals of the linux kernel change quite often, and there is not much effort to maintain a stable ABI between major versions of the kernel. Thus, you will have to look at the source code of the kernel of the kernel you are currently working in, and do not expect it to be automatically compiled into any other version of the kernel.
source share