xref: /linux/arch/x86/entry/syscalls/syscall_64.tbl (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1#
2# 64-bit system call numbers and entry vectors
3#
4# The format is:
5# <number> <abi> <name> <entry point>
6#
7# The abi is "common", "64" or "x32" for this file.
8#
90	common	read			sys_read
101	common	write			sys_write
112	common	open			sys_open
123	common	close			sys_close
134	common	stat			sys_newstat
145	common	fstat			sys_newfstat
156	common	lstat			sys_newlstat
167	common	poll			sys_poll
178	common	lseek			sys_lseek
189	common	mmap			sys_mmap
1910	common	mprotect		sys_mprotect
2011	common	munmap			sys_munmap
2112	common	brk			sys_brk
2213	64	rt_sigaction		sys_rt_sigaction
2314	common	rt_sigprocmask		sys_rt_sigprocmask
2415	64	rt_sigreturn		stub_rt_sigreturn
2516	64	ioctl			sys_ioctl
2617	common	pread64			sys_pread64
2718	common	pwrite64		sys_pwrite64
2819	64	readv			sys_readv
2920	64	writev			sys_writev
3021	common	access			sys_access
3122	common	pipe			sys_pipe
3223	common	select			sys_select
3324	common	sched_yield		sys_sched_yield
3425	common	mremap			sys_mremap
3526	common	msync			sys_msync
3627	common	mincore			sys_mincore
3728	common	madvise			sys_madvise
3829	common	shmget			sys_shmget
3930	common	shmat			sys_shmat
4031	common	shmctl			sys_shmctl
4132	common	dup			sys_dup
4233	common	dup2			sys_dup2
4334	common	pause			sys_pause
4435	common	nanosleep		sys_nanosleep
4536	common	getitimer		sys_getitimer
4637	common	alarm			sys_alarm
4738	common	setitimer		sys_setitimer
4839	common	getpid			sys_getpid
4940	common	sendfile		sys_sendfile64
5041	common	socket			sys_socket
5142	common	connect			sys_connect
5243	common	accept			sys_accept
5344	common	sendto			sys_sendto
5445	64	recvfrom		sys_recvfrom
5546	64	sendmsg			sys_sendmsg
5647	64	recvmsg			sys_recvmsg
5748	common	shutdown		sys_shutdown
5849	common	bind			sys_bind
5950	common	listen			sys_listen
6051	common	getsockname		sys_getsockname
6152	common	getpeername		sys_getpeername
6253	common	socketpair		sys_socketpair
6354	64	setsockopt		sys_setsockopt
6455	64	getsockopt		sys_getsockopt
6556	common	clone			stub_clone
6657	common	fork			stub_fork
6758	common	vfork			stub_vfork
6859	64	execve			stub_execve
6960	common	exit			sys_exit
7061	common	wait4			sys_wait4
7162	common	kill			sys_kill
7263	common	uname			sys_newuname
7364	common	semget			sys_semget
7465	common	semop			sys_semop
7566	common	semctl			sys_semctl
7667	common	shmdt			sys_shmdt
7768	common	msgget			sys_msgget
7869	common	msgsnd			sys_msgsnd
7970	common	msgrcv			sys_msgrcv
8071	common	msgctl			sys_msgctl
8172	common	fcntl			sys_fcntl
8273	common	flock			sys_flock
8374	common	fsync			sys_fsync
8475	common	fdatasync		sys_fdatasync
8576	common	truncate		sys_truncate
8677	common	ftruncate		sys_ftruncate
8778	common	getdents		sys_getdents
8879	common	getcwd			sys_getcwd
8980	common	chdir			sys_chdir
9081	common	fchdir			sys_fchdir
9182	common	rename			sys_rename
9283	common	mkdir			sys_mkdir
9384	common	rmdir			sys_rmdir
9485	common	creat			sys_creat
9586	common	link			sys_link
9687	common	unlink			sys_unlink
9788	common	symlink			sys_symlink
9889	common	readlink		sys_readlink
9990	common	chmod			sys_chmod
10091	common	fchmod			sys_fchmod
10192	common	chown			sys_chown
10293	common	fchown			sys_fchown
10394	common	lchown			sys_lchown
10495	common	umask			sys_umask
10596	common	gettimeofday		sys_gettimeofday
10697	common	getrlimit		sys_getrlimit
10798	common	getrusage		sys_getrusage
10899	common	sysinfo			sys_sysinfo
109100	common	times			sys_times
110101	64	ptrace			sys_ptrace
111102	common	getuid			sys_getuid
112103	common	syslog			sys_syslog
113104	common	getgid			sys_getgid
114105	common	setuid			sys_setuid
115106	common	setgid			sys_setgid
116107	common	geteuid			sys_geteuid
117108	common	getegid			sys_getegid
118109	common	setpgid			sys_setpgid
119110	common	getppid			sys_getppid
120111	common	getpgrp			sys_getpgrp
121112	common	setsid			sys_setsid
122113	common	setreuid		sys_setreuid
123114	common	setregid		sys_setregid
124115	common	getgroups		sys_getgroups
125116	common	setgroups		sys_setgroups
126117	common	setresuid		sys_setresuid
127118	common	getresuid		sys_getresuid
128119	common	setresgid		sys_setresgid
129120	common	getresgid		sys_getresgid
130121	common	getpgid			sys_getpgid
131122	common	setfsuid		sys_setfsuid
132123	common	setfsgid		sys_setfsgid
133124	common	getsid			sys_getsid
134125	common	capget			sys_capget
135126	common	capset			sys_capset
136127	64	rt_sigpending		sys_rt_sigpending
137128	64	rt_sigtimedwait		sys_rt_sigtimedwait
138129	64	rt_sigqueueinfo		sys_rt_sigqueueinfo
139130	common	rt_sigsuspend		sys_rt_sigsuspend
140131	64	sigaltstack		sys_sigaltstack
141132	common	utime			sys_utime
142133	common	mknod			sys_mknod
143134	64	uselib
144135	common	personality		sys_personality
145136	common	ustat			sys_ustat
146137	common	statfs			sys_statfs
147138	common	fstatfs			sys_fstatfs
148139	common	sysfs			sys_sysfs
149140	common	getpriority		sys_getpriority
150141	common	setpriority		sys_setpriority
151142	common	sched_setparam		sys_sched_setparam
152143	common	sched_getparam		sys_sched_getparam
153144	common	sched_setscheduler	sys_sched_setscheduler
154145	common	sched_getscheduler	sys_sched_getscheduler
155146	common	sched_get_priority_max	sys_sched_get_priority_max
156147	common	sched_get_priority_min	sys_sched_get_priority_min
157148	common	sched_rr_get_interval	sys_sched_rr_get_interval
158149	common	mlock			sys_mlock
159150	common	munlock			sys_munlock
160151	common	mlockall		sys_mlockall
161152	common	munlockall		sys_munlockall
162153	common	vhangup			sys_vhangup
163154	common	modify_ldt		sys_modify_ldt
164155	common	pivot_root		sys_pivot_root
165156	64	_sysctl			sys_sysctl
166157	common	prctl			sys_prctl
167158	common	arch_prctl		sys_arch_prctl
168159	common	adjtimex		sys_adjtimex
169160	common	setrlimit		sys_setrlimit
170161	common	chroot			sys_chroot
171162	common	sync			sys_sync
172163	common	acct			sys_acct
173164	common	settimeofday		sys_settimeofday
174165	common	mount			sys_mount
175166	common	umount2			sys_umount
176167	common	swapon			sys_swapon
177168	common	swapoff			sys_swapoff
178169	common	reboot			sys_reboot
179170	common	sethostname		sys_sethostname
180171	common	setdomainname		sys_setdomainname
181172	common	iopl			sys_iopl
182173	common	ioperm			sys_ioperm
183174	64	create_module
184175	common	init_module		sys_init_module
185176	common	delete_module		sys_delete_module
186177	64	get_kernel_syms
187178	64	query_module
188179	common	quotactl		sys_quotactl
189180	64	nfsservctl
190181	common	getpmsg
191182	common	putpmsg
192183	common	afs_syscall
193184	common	tuxcall
194185	common	security
195186	common	gettid			sys_gettid
196187	common	readahead		sys_readahead
197188	common	setxattr		sys_setxattr
198189	common	lsetxattr		sys_lsetxattr
199190	common	fsetxattr		sys_fsetxattr
200191	common	getxattr		sys_getxattr
201192	common	lgetxattr		sys_lgetxattr
202193	common	fgetxattr		sys_fgetxattr
203194	common	listxattr		sys_listxattr
204195	common	llistxattr		sys_llistxattr
205196	common	flistxattr		sys_flistxattr
206197	common	removexattr		sys_removexattr
207198	common	lremovexattr		sys_lremovexattr
208199	common	fremovexattr		sys_fremovexattr
209200	common	tkill			sys_tkill
210201	common	time			sys_time
211202	common	futex			sys_futex
212203	common	sched_setaffinity	sys_sched_setaffinity
213204	common	sched_getaffinity	sys_sched_getaffinity
214205	64	set_thread_area
215206	64	io_setup		sys_io_setup
216207	common	io_destroy		sys_io_destroy
217208	common	io_getevents		sys_io_getevents
218209	64	io_submit		sys_io_submit
219210	common	io_cancel		sys_io_cancel
220211	64	get_thread_area
221212	common	lookup_dcookie		sys_lookup_dcookie
222213	common	epoll_create		sys_epoll_create
223214	64	epoll_ctl_old
224215	64	epoll_wait_old
225216	common	remap_file_pages	sys_remap_file_pages
226217	common	getdents64		sys_getdents64
227218	common	set_tid_address		sys_set_tid_address
228219	common	restart_syscall		sys_restart_syscall
229220	common	semtimedop		sys_semtimedop
230221	common	fadvise64		sys_fadvise64
231222	64	timer_create		sys_timer_create
232223	common	timer_settime		sys_timer_settime
233224	common	timer_gettime		sys_timer_gettime
234225	common	timer_getoverrun	sys_timer_getoverrun
235226	common	timer_delete		sys_timer_delete
236227	common	clock_settime		sys_clock_settime
237228	common	clock_gettime		sys_clock_gettime
238229	common	clock_getres		sys_clock_getres
239230	common	clock_nanosleep		sys_clock_nanosleep
240231	common	exit_group		sys_exit_group
241232	common	epoll_wait		sys_epoll_wait
242233	common	epoll_ctl		sys_epoll_ctl
243234	common	tgkill			sys_tgkill
244235	common	utimes			sys_utimes
245236	64	vserver
246237	common	mbind			sys_mbind
247238	common	set_mempolicy		sys_set_mempolicy
248239	common	get_mempolicy		sys_get_mempolicy
249240	common	mq_open			sys_mq_open
250241	common	mq_unlink		sys_mq_unlink
251242	common	mq_timedsend		sys_mq_timedsend
252243	common	mq_timedreceive		sys_mq_timedreceive
253244	64	mq_notify		sys_mq_notify
254245	common	mq_getsetattr		sys_mq_getsetattr
255246	64	kexec_load		sys_kexec_load
256247	64	waitid			sys_waitid
257248	common	add_key			sys_add_key
258249	common	request_key		sys_request_key
259250	common	keyctl			sys_keyctl
260251	common	ioprio_set		sys_ioprio_set
261252	common	ioprio_get		sys_ioprio_get
262253	common	inotify_init		sys_inotify_init
263254	common	inotify_add_watch	sys_inotify_add_watch
264255	common	inotify_rm_watch	sys_inotify_rm_watch
265256	common	migrate_pages		sys_migrate_pages
266257	common	openat			sys_openat
267258	common	mkdirat			sys_mkdirat
268259	common	mknodat			sys_mknodat
269260	common	fchownat		sys_fchownat
270261	common	futimesat		sys_futimesat
271262	common	newfstatat		sys_newfstatat
272263	common	unlinkat		sys_unlinkat
273264	common	renameat		sys_renameat
274265	common	linkat			sys_linkat
275266	common	symlinkat		sys_symlinkat
276267	common	readlinkat		sys_readlinkat
277268	common	fchmodat		sys_fchmodat
278269	common	faccessat		sys_faccessat
279270	common	pselect6		sys_pselect6
280271	common	ppoll			sys_ppoll
281272	common	unshare			sys_unshare
282273	64	set_robust_list		sys_set_robust_list
283274	64	get_robust_list		sys_get_robust_list
284275	common	splice			sys_splice
285276	common	tee			sys_tee
286277	common	sync_file_range		sys_sync_file_range
287278	64	vmsplice		sys_vmsplice
288279	64	move_pages		sys_move_pages
289280	common	utimensat		sys_utimensat
290281	common	epoll_pwait		sys_epoll_pwait
291282	common	signalfd		sys_signalfd
292283	common	timerfd_create		sys_timerfd_create
293284	common	eventfd			sys_eventfd
294285	common	fallocate		sys_fallocate
295286	common	timerfd_settime		sys_timerfd_settime
296287	common	timerfd_gettime		sys_timerfd_gettime
297288	common	accept4			sys_accept4
298289	common	signalfd4		sys_signalfd4
299290	common	eventfd2		sys_eventfd2
300291	common	epoll_create1		sys_epoll_create1
301292	common	dup3			sys_dup3
302293	common	pipe2			sys_pipe2
303294	common	inotify_init1		sys_inotify_init1
304295	64	preadv			sys_preadv
305296	64	pwritev			sys_pwritev
306297	64	rt_tgsigqueueinfo	sys_rt_tgsigqueueinfo
307298	common	perf_event_open		sys_perf_event_open
308299	64	recvmmsg		sys_recvmmsg
309300	common	fanotify_init		sys_fanotify_init
310301	common	fanotify_mark		sys_fanotify_mark
311302	common	prlimit64		sys_prlimit64
312303	common	name_to_handle_at	sys_name_to_handle_at
313304	common	open_by_handle_at	sys_open_by_handle_at
314305	common	clock_adjtime		sys_clock_adjtime
315306	common	syncfs			sys_syncfs
316307	64	sendmmsg		sys_sendmmsg
317308	common	setns			sys_setns
318309	common	getcpu			sys_getcpu
319310	64	process_vm_readv	sys_process_vm_readv
320311	64	process_vm_writev	sys_process_vm_writev
321312	common	kcmp			sys_kcmp
322313	common	finit_module		sys_finit_module
323314	common	sched_setattr		sys_sched_setattr
324315	common	sched_getattr		sys_sched_getattr
325316	common	renameat2		sys_renameat2
326317	common	seccomp			sys_seccomp
327318	common	getrandom		sys_getrandom
328319	common	memfd_create		sys_memfd_create
329320	common	kexec_file_load		sys_kexec_file_load
330321	common	bpf			sys_bpf
331322	64	execveat		stub_execveat
332323	common	userfaultfd		sys_userfaultfd
333324	common	membarrier		sys_membarrier
334
335#
336# x32-specific system call numbers start at 512 to avoid cache impact
337# for native 64-bit operation.
338#
339512	x32	rt_sigaction		compat_sys_rt_sigaction
340513	x32	rt_sigreturn		stub_x32_rt_sigreturn
341514	x32	ioctl			compat_sys_ioctl
342515	x32	readv			compat_sys_readv
343516	x32	writev			compat_sys_writev
344517	x32	recvfrom		compat_sys_recvfrom
345518	x32	sendmsg			compat_sys_sendmsg
346519	x32	recvmsg			compat_sys_recvmsg
347520	x32	execve			stub_x32_execve
348521	x32	ptrace			compat_sys_ptrace
349522	x32	rt_sigpending		compat_sys_rt_sigpending
350523	x32	rt_sigtimedwait		compat_sys_rt_sigtimedwait
351524	x32	rt_sigqueueinfo		compat_sys_rt_sigqueueinfo
352525	x32	sigaltstack		compat_sys_sigaltstack
353526	x32	timer_create		compat_sys_timer_create
354527	x32	mq_notify		compat_sys_mq_notify
355528	x32	kexec_load		compat_sys_kexec_load
356529	x32	waitid			compat_sys_waitid
357530	x32	set_robust_list		compat_sys_set_robust_list
358531	x32	get_robust_list		compat_sys_get_robust_list
359532	x32	vmsplice		compat_sys_vmsplice
360533	x32	move_pages		compat_sys_move_pages
361534	x32	preadv			compat_sys_preadv64
362535	x32	pwritev			compat_sys_pwritev64
363536	x32	rt_tgsigqueueinfo	compat_sys_rt_tgsigqueueinfo
364537	x32	recvmmsg		compat_sys_recvmmsg
365538	x32	sendmmsg		compat_sys_sendmmsg
366539	x32	process_vm_readv	compat_sys_process_vm_readv
367540	x32	process_vm_writev	compat_sys_process_vm_writev
368541	x32	setsockopt		compat_sys_setsockopt
369542	x32	getsockopt		compat_sys_getsockopt
370543	x32	io_setup		compat_sys_io_setup
371544	x32	io_submit		compat_sys_io_submit
372545	x32	execveat		stub_x32_execveat
373