System Call Table - x86_64

syscall numbersyscall%rax%rdi%rsi%rdx%rcx%r8%r9
0sys_read0unsigned int fdchar *bufsize_t count
1sys_write1unsigned int fdconst char *bufsize_t count
2sys_open2const char *filenameint flagsint mode
3sys_close3unsigned int fd
4sys_stat4const char *filenamestruct stat *statbuf
5sys_fstat5unsigned int fdstruct stat *statbuf
6sys_lstat6fconst char *filenamestruct stat *statbuf
7sys_poll7struct poll_fd *ufdsunsigned int nfdslong timeout_msecs
8sys_lseek8unsigned int fdoff_t offsetunsigned int origin
9sys_mmap9unsigned long addrunsigned long lenunsigned long protunsigned long flagsunsigned long fdunsigned long off
10sys_mprotectAunsigned long startsize_t lenunsigned long prot
11sys_munmapBunsigned long addrsize_t len
12sys_brkCunsigned long brk
13sys_rt_sigactionDint sigconst struct sigaction *actstruct sigaction *oactsize_t sigsetsize
14sys_rt_sigprocmaskEint howsigset_t *nsetsigset_t *osetsize_t sigsetsize
15sys_rt_sigreturnFunsigned long __unused
16sys_ioctl10unsigned int fdunsigned int cmdunsigned long arg
17sys_pread6411unsigned long fdchar *bufsize_t countloff_t pos
18sys_pwrite6412unsigned int fdconst char *bufsize_t countloff_t pos
19sys_readv13unsigned long fdconst struct iovec *vecunsigned long vlen
20sys_writev14unsigned long fdconst struct iovec *vecunsigned long vlen
21sys_access15const char *filenameint mode
22sys_pipe16int *filedes
23sys_select17int nfd_set *inpfd_set *outpfd_set*expstruct timeval *tvp
24sys_sched_yield18
25sys_mremap19unsigned long addrunsigned long old_lenunsigned long new_lenunsigned long flagsunsigned long new_addr
26sys_msync1Aunsigned long startsize_t lenint flags
27sys_mincore1Bunsigned long startsize_t lenunsigned char *vec
28sys_madvise1Cunsigned long startsize_t len_inint behavior
29sys_shmget1Dkey_t keysize_t sizeint shmflg
30sys_shmat1Eint shmidchar *shmaddrint shmflg
31sys_shmctl1Fint shmidint cmdstruct shmid_ds *buf
32sys_dup20unsigned int fildes
33sys_dup221unsigned int oldfdunsigned int newfd
34sys_pause22
35sys_nanosleep23struct timespec *rqtpstruct timespec *rmtp
36sys_getitimer24int whichstruct itimerval *value
37sys_alarm25unsigned int seconds
38sys_setitimer26int whichstruct itimerval *valuestruct itimerval *ovalue
39sys_getpid27
40sys_sendfile28int out_fdint in_fdoff_t *offsetsize_t count
41sys_socket29int familyint typeint protocol
42sys_connect2Aint fdstruct sockaddr *uservaddrint addrlen
43sys_accept2Bint fdstruct sockaddr *upeer_sockaddrint *upeer_addrlen
44sys_sendto2Cint fdvoid *buffsize_t lenunsigned flagsstruct sockaddr *addrint addr_len
45sys_recvfrom2Dint fdvoid *ubufsize_t sizeunsigned flagsstruct sockaddr *addrint *addr_len
46sys_sendmsg2Eint fdstruct msghdr *msgunsigned flags
47sys_recvmsg2Fint fdstruct msghdr *msgunsigned int flags
48sys_shutdown30int fdint how
49sys_bind31int fdstruct sokaddr *umyaddrint addrlen
50sys_listen32int fdint backlog
51sys_getsockname33int fdstruct sockaddr *usockaddrint *usockaddr_len
52sys_getpeername34int fdstruct sockaddr *usockaddrint *usockaddr_len
53sys_socketpair35int familyint typeint protocolint *usockvec
54sys_setsockopt36int fdint levelint optnamechar *optvalint optlen
55sys_getsockopt37int fdint levelint optnamechar *optvalint *optlen
56sys_clone38unsigned long clone_flagsunsigned long newspvoid *parent_tidvoid *child_tid
57sys_fork39
58sys_vfork3A
59sys_execve3Bconst char *filenameconst char *const argv[]const char *const envp[]
60sys_exit3Cint error_code
61sys_wait43Dpid_t upidint *stat_addrint optionsstruct rusage *ru
62sys_kill3Epid_t pidint sig
63sys_uname3Fstruct old_utsname *name
64sys_semget40key_t keyint nsemsint semflg
65sys_semop41int semidstruct sembuf *tsopsunsigned nsops
66sys_semctl42int semidint semnumint cmdunion semun arg
67sys_shmdt43char *shmaddr
68sys_msgget44key_t keyint msgflg
69sys_msgsnd45int msqidstruct msgbuf *msgpsize_t msgszint msgflg
70sys_msgrcv46int msqidstruct msgbuf *msgpsize_t msgszlong msgtypint msgflg
71sys_msgctl47int msqidint cmdstruct msqid_ds *buf
72sys_fcntl48unsigned int fdunsigned int cmdunsigned long arg
73sys_flock49unsigned int fdunsigned int cmd
74sys_fsync4Aunsigned int fd
75sys_fdatasync4Bunsigned int fd
76sys_truncate4Cconst char *pathlong length
77sys_ftruncate4Dunsigned int fdunsigned long length
78sys_getdents4Eunsigned int fdstruct linux_dirent *direntunsigned int count
79sys_getcwd4Fchar *bufunsigned long size
80sys_chdir50const char *filename
81sys_fchdir51unsigned int fd
82sys_rename52const char *oldnameconst char *newname
83sys_mkdir53const char *pathnameint mode
84sys_rmdir54const char *pathname
85sys_creat55const char *pathnameint mode
86sys_link56const char *oldnameconst char *newname
87sys_unlink57const char *pathname
88sys_symlink58const char *oldnameconst char *newname
89sys_readlink59const char *pathchar *bufint bufsiz
90sys_chmod5Aconst char *filenamemode_t mode
91sys_fchmod5Bunsigned int fdmode_t mode
92sys_chown5Cconst char *filenameuid_t usergit_t group
93sys_fchown5Dunsigned int fduid_t usergit_t group
94sys_lchown5Econst char *filenameuid_t usergit_t group
95sys_umask5Fint mask
96sys_gettimeofday60struct timeval *tvstruct timezone *tz
97sys_getrlimit61unsigned int resourcestruct rlimit *rlim
98sys_getrusage62int whostruct rusage *ru
99sys_sysinfo63struct sysinfo *info
100sys_times64struct sysinfo *info
101sys_ptrace65long requestlong pidunsigned long addrunsigned long data
102sys_getuid66
103sys_syslog67int typechar *bufint len
104sys_getgid68
105sys_setuid69uid_t uid
106sys_setgid6Agit_t gid
107sys_geteuid6B
108sys_getegid6C
109sys_setpgid6Dpid_t pidpid_t pgid
110sys_getppid6E
111sys_getpgrp6F
112sys_setsid70
113sys_setreuid71uid_t ruiduid_t euid
114sys_setregid72git_t rgidgid_t egid
115sys_getgroups73int gidsetsizegid_t *grouplist
116sys_setgroups74int gidsetsizegid_t *grouplist
117sys_setresuid75uid_t *ruiduid_t *euiduid_t *suid
118sys_getresuid76uid_t *ruiduid_t *euiduid_t *suid
119sys_setresgid77gid_t rgidgid_t egidgid_t sgid
120sys_getresgid78git_t *rgidgit_t *egidgit_t *sgid
121sys_getpgid79pid_t pid
122sys_setfsuid7Auid_t uid
123sys_setfsgid7Bgid_t gid
124sys_getsid7Cpid_t pid
125sys_capget7Dcap_user_header_t headercap_user_data_t dataptr
126sys_capset7Ecap_user_header_t headerconst cap_user_data_t data
127sys_rt_sigpending7Fsigset_t *setsize_t sigsetsize
128sys_rt_sigtimedwait80const sigset_t *uthesesiginfo_t *uinfoconst struct timespec *utssize_t sigsetsize
129sys_rt_sigqueueinfo81pid_t pidint sigsiginfo_t *uinfo
130sys_rt_sigsuspend82sigset_t *unewsetsize_t sigsetsize
131sys_sigaltstack83const stack_t *ussstack_t *uoss
132sys_utime84char *filenamestruct utimbuf *times
133sys_mknod85const char *filenameint modeunsigned dev
134sys_uselib86NOT IMPLEMENTED
135sys_personality87unsigned int personality
136sys_ustat88unsigned devstruct ustat *ubuf
137sys_statfs89const char *pathnamestruct statfs *buf
138sys_fstatfs8Aunsigned int fdstruct statfs *buf
139sys_sysfs8Bint optionunsigned long arg1unsigned long arg2
140sys_getpriority8Cint whichint who
141sys_setpriority8Dint whichint whoint niceval
142sys_sched_setparam8Epid_t pidstruct sched_param *param
143sys_sched_getparam8Fpid_t pidstruct sched_param *param
144sys_sched_setscheduler90pid_t pidint policystruct sched_param *param
145sys_sched_getscheduler91pid_t pid
146sys_sched_get_priority_max92int policy
147sys_sched_get_priority_min93int policy
148sys_sched_rr_get_interval94pid_t pidstruct timespec *interval
149sys_mlock95unsigned long startsize_t len
150sys_munlock96unsigned long startsize_t len
151sys_mlockall97int flags
152sys_munlockall98
153sys_vhangup99
154sys_modify_ldt9Aint funcvoid *ptrunsigned long bytecount
155sys_pivot_root9Bconst char *new_rootconst char *put_old
156sys__sysctl9Cstruct __sysctl_args *args
157sys_prctl9Dint optionunsigned long arg2unsigned long arg3unsigned long arg4unsigned long arg5
158sys_arch_prctl9Estruct task_struct *taskint codeunsigned long *addr
159sys_adjtimex9Fstruct timex *txc_p
160sys_setrlimitA0unsigned int resourcestruct rlimit *rlim
161sys_chrootA1const char *filename
162sys_syncA2
163sys_acctA3const char *name
164sys_settimeofdayA4struct timeval *tvstruct timezone *tz
165sys_mountA5char *dev_namechar *dir_namechar *typeunsigned long flagsvoid *data
166sys_umount2A6const char *targetint flags
167sys_swaponA7const char *specialfileint swap_flags
168sys_swapoffA8const char *specialfile
169sys_rebootA9int magic1int magic2unsigned int cmdvoid *arg
170sys_sethostnameAAchar *nameint len
171sys_setdomainnameABchar *nameint len
172sys_ioplACunsigned int levelstruct pt_regs *regs
173sys_iopermADunsigned long fromunsigned long numint turn_on
174sys_create_moduleAEREMOVED IN Linux 2.6
175sys_init_moduleAFvoid *umodunsigned long lenconst char *uargs
176sys_delete_moduleB0const chat *name_userunsigned int flags
177sys_get_kernel_symsB1REMOVED IN Linux 2.6
178sys_query_moduleB2REMOVED IN Linux 2.6
179sys_quotactlB3unsigned int cmdconst char *specialqid_t idvoid *addr
180sys_nfsservctlB4NOT IMPLEMENTED
181sys_getpmsgB5NOT IMPLEMENTED
182sys_putpmsgB6NOT IMPLEMENTED
183sys_afs_syscallB7NOT IMPLEMENTED
184sys_tuxcallB8NOT IMPLEMENTED
185sys_securityB9NOT IMPLEMENTED
186sys_gettidBA
187sys_readaheadBBint fdloff_t offsetsize_t count
188sys_setxattrBCconst char *pathnameconst char *nameconst void *valuesize_t sizeint flags
189sys_lsetxattrBDconst char *pathnameconst char *nameconst void *valuesize_t sizeint flags
190sys_fsetxattrBEint fdconst char *nameconst void *valuesize_t sizeint flags
191sys_getxattrBFconst char *pathnameconst char *namevoid *valuesize_t size
192sys_lgetxattrC0const char *pathnameconst char *namevoid *valuesize_t size
193sys_fgetxattrC1int fdconst har *namevoid *valuesize_t size
194sys_listxattrC2const char *pathnamechar *listsize_t size
195sys_llistxattrC3const char *pathnamechar *listsize_t size
196sys_flistxattrC4int fdchar *listsize_t size
197sys_removexattrC5const char *pathnameconst char *name
198sys_lremovexattrC6const char *pathnameconst char *name
199sys_fremovexattrC7int fdconst char *name
200sys_tkillC8pid_t piding sig
201sys_timeC9time_t *tloc
202sys_futexCAu32 *uaddrint opu32 valstruct timespec *utimeu32 *uaddr2u32 val3
203sys_sched_setaffinityCBpid_t pidunsigned int lenunsigned long *user_mask_ptr
204sys_sched_getaffinityCCpid_t pidunsigned int lenunsigned long *user_mask_ptr
205sys_set_thread_areaCDNOT IMPLEMENTED. Use arch_prctl
206sys_io_setupCEunsigned nr_eventsaio_context_t *ctxp
207sys_io_destroyCFaio_context_t ctx
208sys_io_geteventsD0aio_context_t ctx_idlong min_nrlong nrstruct io_event *events
209sys_io_submitD1aio_context_t ctx_idlong nrstruct iocb **iocbpp
210sys_io_cancelD2aio_context_t ctx_idstruct iocb *iocbstruct io_event *result
211sys_get_thread_areaD3NOT IMPLEMENTED. Use arch_prctl
212sys_lookup_dcookieD4u64 cookie64long buflong len
213sys_epoll_createD5int size
214sys_epoll_ctl_oldD6NOT IMPLEMENTED
215sys_epoll_wait_oldD7NOT IMPLEMENTED
216sys_remap_file_pagesD8unsigned long startunsigned long sizeunsigned long protunsigned long pgoffunsigned long flags
217sys_getdents64D9unsigned int fdstruct linux_dirent64 *direntunsigned int count
218sys_set_tid_addressDAint *tidptr
219sys_restart_syscallDB
220sys_semtimedopDCint semidstruct sembuf *tsopsunsigned nsopsconst struct timespec *timeout
221sys_fadvise64DDint fdloff_t offsetsize_t lenint advice
222sys_timer_createDEconst clockid_t which_clockstruct sigevent *timer_event_spectimer_t *created_timer_id
223sys_timer_settimeDFtimer_t timer_idint flagsconst struct itimerspec *new_settingstruct itimerspec *old_setting
224sys_timer_gettimeE0timer_t timer_idstruct itimerspec *setting
225sys_timer_getoverrunE1timer_t timer_id
226sys_timer_deleteE2timer_t timer_id
227sys_clock_settimeE3const clockid_t which_clockconst struct timespec *tp
228sys_clock_gettimeE4const clockid_t which_clockstruct timespec *tp
229sys_clock_getresE5const clockid_t which_clockstruct timespec *tp
230sys_clock_nanosleepE6const clockid_t which_clockint flagsconst struct timespec *rqtpstruct timespec *rmtp
231sys_exit_groupE7int error_code
232sys_epoll_waitE8int epfdstruct epoll_event *eventsint maxeventsint timeout
233sys_epoll_ctlE9int epfdint opint fdstruct epoll_event *event
234sys_tgkillEApid_t tgidpid_t pidint sig
235sys_utimesEBchar *filenamestruct timeval *utimes
236sys_vserverECNOT IMPLEMENTED
237sys_mbindEDunsigned long startunsigned long lenunsigned long modeunsigned long *nmaskunsigned long maxnodeunsigned flags
238sys_set_mempolicyEEint modeunsigned long *nmaskunsigned long maxnode
239sys_get_mempolicyEFint *policyunsigned long *nmaskunsigned long maxnodeunsigned long addrunsigned long flags
240sys_mq_openF0const char *u_nameint oflagmode_t modestruct mq_attr *u_attr
241sys_mq_unlinkF1const char *u_name
242sys_mq_timedsendF2mqd_t mqdesconst char *u_msg_ptrsize_t msg_lenunsigned int msg_prioconst stuct timespec *u_abs_timeout
243sys_mq_timedreceiveF3mqd_t mqdeschar *u_msg_ptrsize_t msg_lenunsigned int *u_msg_prioconst struct timespec *u_abs_timeout
244sys_mq_notifyF4mqd_t mqdesconst struct sigevent *u_notification
245sys_mq_getsetattrF5mqd_t mqdesconst struct mq_attr *u_mqstatstruct mq_attr *u_omqstat
246sys_kexec_loadF6unsigned long entryunsigned long nr_segmentsstruct kexec_segment *segmentsunsigned long flags
247sys_waitidF7int whichpid_t upidstruct siginfo *infopint optionsstruct rusage *ru
248sys_add_keyF8const char *_typeconst char *_descriptionconst void *_payloadsize_t plen
249sys_request_keyF9const char *_typeconst char *_descriptionconst char *_callout_infokey_serial_t destringid
250sys_keyctlFAint optionunsigned long arg2unsigned long arg3unsigned long arg4unsigned long arg5
251sys_ioprio_setFBint whichint whoint ioprio
252sys_ioprio_getFCint whichint who
253sys_inotify_initFD
254sys_inotify_add_watchFEint fdconst char *pathnameu32 mask
255sys_inotify_rm_watchFFint fd__s32 wd
256sys_migrate_pages100pid_t pidunsigned long maxnodeconst unsigned long *old_nodesconst unsigned long *new_nodes
257sys_openat101int dfdconst char *filenameint flagsint mode
258sys_mkdirat102int dfdconst char *pathnameint mode
259sys_mknodat103int dfdconst char *filenameint modeunsigned dev
260sys_fchownat104int dfdconst char *filenameuid_t usergid_t groupint flag
261sys_futimesat105int dfdconst char *filenamestruct timeval *utimes
262sys_newfstatat106int dfdconst char *filenamestruct stat *statbufint flag
263sys_unlinkat107int dfdconst char *pathnameint flag
264sys_renameat108int oldfdconst char *oldnameint newfdconst char *newname
265sys_linkat109int oldfdconst char *oldnameint newfdconst char *newnameint flags
266sys_symlinkat10Aconst char *oldnameint newfdconst char *newname
267sys_readlinkat10Bint dfdconst char *pathnamechar *bufint bufsiz
268sys_fchmodat10Cint dfdconst char *filenamemode_t mode
269sys_faccessat10Dint dfdconst char *filenameint mode
270sys_pselect610Eint nfd_set *inpfd_set *outpfd_set *expstruct timespec *tspvoid *sig
271sys_ppoll10Fstruct pollfd *ufdsunsigned int nfdsstruct timespec *tspconst sigset_t *sigmasksize_t sigsetsize
272sys_unshare110unsigned long unshare_flags
273sys_set_robust_list111struct robust_list_head *headsize_t len
274sys_get_robust_list112int pidstruct robust_list_head **head_ptrsize_t *len_ptr
275sys_splice113int fd_inloff_t *off_inint fd_outloff_t *off_outsize_t lenunsigned int flags
276sys_tee114int fdinint fdoutsize_t lenunsigned int flags
277sys_sync_file_range115long fdloff_t offsetloff_t byteslong flags
278sys_vmsplice116int fdconst struct iovec *iovunsigned long nr_segsunsigned int flags
279sys_move_pages117pid_t pidunsigned long nr_pagesconst void **pagesconst int *nodesint *statusint flags
280sys_utimensat118int dfdconst char *filenamestruct timespec *utimesint flags
281sys_epoll_pwait119int epfdstruct epoll_event *eventsint maxeventsint timeoutconst sigset_t *sigmasksize_t sigsetsize
282sys_signalfd11Aint ufdsigset_t *user_masksize_t sizemask
283sys_timerfd_create11Bint clockidint flags
284sys_eventfd11Cunsigned int count
285sys_fallocate11Dlong fdlong modeloff_t offsetloff_t len
286sys_timerfd_settime11Eint ufdint flagsconst struct itimerspec *utmrstruct itimerspec *otmr
287sys_timerfd_gettime11Fint ufdstruct itimerspec *otmr
288sys_accept4120int fdstruct sockaddr *upeer_sockaddrint *upeer_addrlenint flags
289sys_signalfd4121int ufdsigset_t *user_masksize_t sizemaskint flags
290sys_eventfd2122unsigned int countint flags
291sys_epoll_create1123int flags
292sys_dup3124unsigned int oldfdunsigned int newfdint flags
293sys_pipe2125int *filedesint flags
294sys_inotify_init1126int flags
295sys_preadv127unsigned long fdconst struct iovec *vecunsigned long vlenunsigned long pos_lunsigned long pos_h
296sys_pwritev128unsigned long fdconst struct iovec *vecunsigned long vlenunsigned long pos_lunsigned long pos_h
297sys_rt_tgsigqueueinfo129pid_t tgidpid_t pidint sigsiginfo_t *uinfo
298sys_perf_event_open12Astruct perf_event_attr *attr_uptrpid_t pidint cpuint group_fdunsigned long flags
299sys_recvmmsg12Bint fdstruct msghdr *mmsgunsigned int vlenunsigned int flagsstruct timespec *timeout
300sys_fanotify_init12Cunsigned int flagsunsigned int event_f_flags
301sys_fanotify_mark12Dlong fanotify_fdlong flags__u64 masklong dfdlong pathname
302sys_prlimit6412Epid_t pidunsigned int resourceconst struct rlimit64 *new_rlimstruct rlimit64 *old_rlim
303sys_name_to_handle_at12Fint dfdconst char *namestruct file_handle *handleint *mnt_idint flag
304sys_open_by_handle_at130int dfdconst char *namestruct file_handle *handleint *mnt_idint flags
305sys_clock_adjtime131clockid_t which_clockstruct timex *tx
306sys_syncfs132int fd
307sys_sendmmsg133int fdstruct mmsghdr *mmsgunsigned int vlenunsigned int flags
308sys_setns134int fdint nstype
309sys_getcpu135unsigned *cpupunsigned *nodepstruct getcpu_cache *unused
310sys_process_vm_readv136pid_t pidconst struct iovec *lvecunsigned long liovcntconst struct iovec *rvecunsigned long riovcntunsigned long flags
311sys_process_vm_writev137pid_t pidconst struct iovec *lvecunsigned long liovcntconst struct iovcc *rvecunsigned long riovcntunsigned long flags