1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2# 3# system call numbers and entry vectors for xtensa 4# 5# The format is: 6# <number> <abi> <name> <entry point> 7# 8# The <abi> is always "common" for this file 9# 100 common spill sys_ni_syscall 111 common xtensa sys_ni_syscall 122 common available4 sys_ni_syscall 133 common available5 sys_ni_syscall 144 common available6 sys_ni_syscall 155 common available7 sys_ni_syscall 166 common available8 sys_ni_syscall 177 common available9 sys_ni_syscall 18# File Operations 198 common open sys_open 209 common close sys_close 2110 common dup sys_dup 2211 common dup2 sys_dup2 2312 common read sys_read 2413 common write sys_write 2514 common select sys_select 2615 common lseek sys_lseek 2716 common poll sys_poll 2817 common _llseek sys_llseek 2918 common epoll_wait sys_epoll_wait 3019 common epoll_ctl sys_epoll_ctl 3120 common epoll_create sys_epoll_create 3221 common creat sys_creat 3322 common truncate sys_truncate 3423 common ftruncate sys_ftruncate 3524 common readv sys_readv 3625 common writev sys_writev 3726 common fsync sys_fsync 3827 common fdatasync sys_fdatasync 3928 common truncate64 sys_truncate64 4029 common ftruncate64 sys_ftruncate64 4130 common pread64 sys_pread64 4231 common pwrite64 sys_pwrite64 4332 common link sys_link 4433 common rename sys_rename 4534 common symlink sys_symlink 4635 common readlink sys_readlink 4736 common mknod sys_mknod 4837 common pipe sys_pipe 4938 common unlink sys_unlink 5039 common rmdir sys_rmdir 5140 common mkdir sys_mkdir 5241 common chdir sys_chdir 5342 common fchdir sys_fchdir 5443 common getcwd sys_getcwd 5544 common chmod sys_chmod 5645 common chown sys_chown 5746 common stat sys_newstat 5847 common stat64 sys_stat64 5948 common lchown sys_lchown 6049 common lstat sys_newlstat 6150 common lstat64 sys_lstat64 6251 common available51 sys_ni_syscall 6352 common fchmod sys_fchmod 6453 common fchown sys_fchown 6554 common fstat sys_newfstat 6655 common fstat64 sys_fstat64 6756 common flock sys_flock 6857 common access sys_access 6958 common umask sys_umask 7059 common getdents sys_getdents 7160 common getdents64 sys_getdents64 7261 common fcntl64 sys_fcntl64 7362 common fallocate sys_fallocate 7463 common fadvise64_64 xtensa_fadvise64_64 7564 common utime sys_utime32 7665 common utimes sys_utimes_time32 7766 common ioctl sys_ioctl 7867 common fcntl sys_fcntl 7968 common setxattr sys_setxattr 8069 common getxattr sys_getxattr 8170 common listxattr sys_listxattr 8271 common removexattr sys_removexattr 8372 common lsetxattr sys_lsetxattr 8473 common lgetxattr sys_lgetxattr 8574 common llistxattr sys_llistxattr 8675 common lremovexattr sys_lremovexattr 8776 common fsetxattr sys_fsetxattr 8877 common fgetxattr sys_fgetxattr 8978 common flistxattr sys_flistxattr 9079 common fremovexattr sys_fremovexattr 91# File Map / Shared Memory Operations 9280 common mmap2 sys_mmap_pgoff 9381 common munmap sys_munmap 9482 common mprotect sys_mprotect 9583 common brk sys_brk 9684 common mlock sys_mlock 9785 common munlock sys_munlock 9886 common mlockall sys_mlockall 9987 common munlockall sys_munlockall 10088 common mremap sys_mremap 10189 common msync sys_msync 10290 common mincore sys_mincore 10391 common madvise sys_madvise 10492 common shmget sys_shmget 10593 common shmat xtensa_shmat 10694 common shmctl sys_old_shmctl 10795 common shmdt sys_shmdt 108# Socket Operations 10996 common socket sys_socket 11097 common setsockopt sys_setsockopt 11198 common getsockopt sys_getsockopt 11299 common shutdown sys_shutdown 113100 common bind sys_bind 114101 common connect sys_connect 115102 common listen sys_listen 116103 common accept sys_accept 117104 common getsockname sys_getsockname 118105 common getpeername sys_getpeername 119106 common sendmsg sys_sendmsg 120107 common recvmsg sys_recvmsg 121108 common send sys_send 122109 common recv sys_recv 123110 common sendto sys_sendto 124111 common recvfrom sys_recvfrom 125112 common socketpair sys_socketpair 126113 common sendfile sys_sendfile 127114 common sendfile64 sys_sendfile64 128115 common sendmmsg sys_sendmmsg 129# Process Operations 130116 common clone sys_clone 131117 common execve sys_execve 132118 common exit sys_exit 133119 common exit_group sys_exit_group 134120 common getpid sys_getpid 135121 common wait4 sys_wait4 136122 common waitid sys_waitid 137123 common kill sys_kill 138124 common tkill sys_tkill 139125 common tgkill sys_tgkill 140126 common set_tid_address sys_set_tid_address 141127 common gettid sys_gettid 142128 common setsid sys_setsid 143129 common getsid sys_getsid 144130 common prctl sys_prctl 145131 common personality sys_personality 146132 common getpriority sys_getpriority 147133 common setpriority sys_setpriority 148134 common setitimer sys_setitimer 149135 common getitimer sys_getitimer 150136 common setuid sys_setuid 151137 common getuid sys_getuid 152138 common setgid sys_setgid 153139 common getgid sys_getgid 154140 common geteuid sys_geteuid 155141 common getegid sys_getegid 156142 common setreuid sys_setreuid 157143 common setregid sys_setregid 158144 common setresuid sys_setresuid 159145 common getresuid sys_getresuid 160146 common setresgid sys_setresgid 161147 common getresgid sys_getresgid 162148 common setpgid sys_setpgid 163149 common getpgid sys_getpgid 164150 common getppid sys_getppid 165151 common getpgrp sys_getpgrp 166# 152 was set_thread_area 167152 common reserved152 sys_ni_syscall 168# 153 was get_thread_area 169153 common reserved153 sys_ni_syscall 170154 common times sys_times 171155 common acct sys_acct 172156 common sched_setaffinity sys_sched_setaffinity 173157 common sched_getaffinity sys_sched_getaffinity 174158 common capget sys_capget 175159 common capset sys_capset 176160 common ptrace sys_ptrace 177161 common semtimedop sys_semtimedop_time32 178162 common semget sys_semget 179163 common semop sys_semop 180164 common semctl sys_old_semctl 181165 common available165 sys_ni_syscall 182166 common msgget sys_msgget 183167 common msgsnd sys_msgsnd 184168 common msgrcv sys_msgrcv 185169 common msgctl sys_old_msgctl 186170 common available170 sys_ni_syscall 187# File System 188171 common umount2 sys_umount 189172 common mount sys_mount 190173 common swapon sys_swapon 191174 common chroot sys_chroot 192175 common pivot_root sys_pivot_root 193176 common umount sys_oldumount 194177 common swapoff sys_swapoff 195178 common sync sys_sync 196179 common syncfs sys_syncfs 197180 common setfsuid sys_setfsuid 198181 common setfsgid sys_setfsgid 199182 common sysfs sys_sysfs 200183 common ustat sys_ustat 201184 common statfs sys_statfs 202185 common fstatfs sys_fstatfs 203186 common statfs64 sys_statfs64 204187 common fstatfs64 sys_fstatfs64 205# System 206188 common setrlimit sys_setrlimit 207189 common getrlimit sys_getrlimit 208190 common getrusage sys_getrusage 209191 common futex sys_futex_time32 210192 common gettimeofday sys_gettimeofday 211193 common settimeofday sys_settimeofday 212194 common adjtimex sys_adjtimex_time32 213195 common nanosleep sys_nanosleep_time32 214196 common getgroups sys_getgroups 215197 common setgroups sys_setgroups 216198 common sethostname sys_sethostname 217199 common setdomainname sys_setdomainname 218200 common syslog sys_syslog 219201 common vhangup sys_vhangup 220202 common uselib sys_uselib 221203 common reboot sys_reboot 222204 common quotactl sys_quotactl 223# 205 was old nfsservctl 224205 common nfsservctl sys_ni_syscall 225206 common _sysctl sys_ni_syscall 226207 common bdflush sys_ni_syscall 227208 common uname sys_newuname 228209 common sysinfo sys_sysinfo 229210 common init_module sys_init_module 230211 common delete_module sys_delete_module 231212 common sched_setparam sys_sched_setparam 232213 common sched_getparam sys_sched_getparam 233214 common sched_setscheduler sys_sched_setscheduler 234215 common sched_getscheduler sys_sched_getscheduler 235216 common sched_get_priority_max sys_sched_get_priority_max 236217 common sched_get_priority_min sys_sched_get_priority_min 237218 common sched_rr_get_interval sys_sched_rr_get_interval_time32 238219 common sched_yield sys_sched_yield 239222 common available222 sys_ni_syscall 240# Signal Handling 241223 common restart_syscall sys_restart_syscall 242224 common sigaltstack sys_sigaltstack 243225 common rt_sigreturn xtensa_rt_sigreturn 244226 common rt_sigaction sys_rt_sigaction 245227 common rt_sigprocmask sys_rt_sigprocmask 246228 common rt_sigpending sys_rt_sigpending 247229 common rt_sigtimedwait sys_rt_sigtimedwait_time32 248230 common rt_sigqueueinfo sys_rt_sigqueueinfo 249231 common rt_sigsuspend sys_rt_sigsuspend 250# Message 251232 common mq_open sys_mq_open 252233 common mq_unlink sys_mq_unlink 253234 common mq_timedsend sys_mq_timedsend_time32 254235 common mq_timedreceive sys_mq_timedreceive_time32 255236 common mq_notify sys_mq_notify 256237 common mq_getsetattr sys_mq_getsetattr 257238 common available238 sys_ni_syscall 258239 common io_setup sys_io_setup 259# IO 260240 common io_destroy sys_io_destroy 261241 common io_submit sys_io_submit 262242 common io_getevents sys_io_getevents_time32 263243 common io_cancel sys_io_cancel 264244 common clock_settime sys_clock_settime32 265245 common clock_gettime sys_clock_gettime32 266246 common clock_getres sys_clock_getres_time32 267247 common clock_nanosleep sys_clock_nanosleep_time32 268# Timer 269248 common timer_create sys_timer_create 270249 common timer_delete sys_timer_delete 271250 common timer_settime sys_timer_settime32 272251 common timer_gettime sys_timer_gettime32 273252 common timer_getoverrun sys_timer_getoverrun 274# System 275253 common reserved253 sys_ni_syscall 276254 common lookup_dcookie sys_lookup_dcookie 277255 common available255 sys_ni_syscall 278256 common add_key sys_add_key 279257 common request_key sys_request_key 280258 common keyctl sys_keyctl 281259 common available259 sys_ni_syscall 282260 common readahead sys_readahead 283261 common remap_file_pages sys_remap_file_pages 284262 common migrate_pages sys_migrate_pages 285263 common mbind sys_mbind 286264 common get_mempolicy sys_get_mempolicy 287265 common set_mempolicy sys_set_mempolicy 288266 common unshare sys_unshare 289267 common move_pages sys_move_pages 290268 common splice sys_splice 291269 common tee sys_tee 292270 common vmsplice sys_vmsplice 293271 common available271 sys_ni_syscall 294272 common pselect6 sys_pselect6_time32 295273 common ppoll sys_ppoll_time32 296274 common epoll_pwait sys_epoll_pwait 297275 common epoll_create1 sys_epoll_create1 298276 common inotify_init sys_inotify_init 299277 common inotify_add_watch sys_inotify_add_watch 300278 common inotify_rm_watch sys_inotify_rm_watch 301279 common inotify_init1 sys_inotify_init1 302280 common getcpu sys_getcpu 303281 common kexec_load sys_ni_syscall 304282 common ioprio_set sys_ioprio_set 305283 common ioprio_get sys_ioprio_get 306284 common set_robust_list sys_set_robust_list 307285 common get_robust_list sys_get_robust_list 308286 common available286 sys_ni_syscall 309287 common available287 sys_ni_syscall 310# Relative File Operations 311288 common openat sys_openat 312289 common mkdirat sys_mkdirat 313290 common mknodat sys_mknodat 314291 common unlinkat sys_unlinkat 315292 common renameat sys_renameat 316293 common linkat sys_linkat 317294 common symlinkat sys_symlinkat 318295 common readlinkat sys_readlinkat 319296 common utimensat sys_utimensat_time32 320297 common fchownat sys_fchownat 321298 common futimesat sys_futimesat_time32 322299 common fstatat64 sys_fstatat64 323300 common fchmodat sys_fchmodat 324301 common faccessat sys_faccessat 325302 common available302 sys_ni_syscall 326303 common available303 sys_ni_syscall 327304 common signalfd sys_signalfd 328# 305 was timerfd 329306 common eventfd sys_eventfd 330307 common recvmmsg sys_recvmmsg_time32 331308 common setns sys_setns 332309 common signalfd4 sys_signalfd4 333310 common dup3 sys_dup3 334311 common pipe2 sys_pipe2 335312 common timerfd_create sys_timerfd_create 336313 common timerfd_settime sys_timerfd_settime32 337314 common timerfd_gettime sys_timerfd_gettime32 338315 common available315 sys_ni_syscall 339316 common eventfd2 sys_eventfd2 340317 common preadv sys_preadv 341318 common pwritev sys_pwritev 342319 common available319 sys_ni_syscall 343320 common fanotify_init sys_fanotify_init 344321 common fanotify_mark sys_fanotify_mark 345322 common process_vm_readv sys_process_vm_readv 346323 common process_vm_writev sys_process_vm_writev 347324 common name_to_handle_at sys_name_to_handle_at 348325 common open_by_handle_at sys_open_by_handle_at 349326 common sync_file_range2 sys_sync_file_range2 350327 common perf_event_open sys_perf_event_open 351328 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 352329 common clock_adjtime sys_clock_adjtime32 353330 common prlimit64 sys_prlimit64 354331 common kcmp sys_kcmp 355332 common finit_module sys_finit_module 356333 common accept4 sys_accept4 357334 common sched_setattr sys_sched_setattr 358335 common sched_getattr sys_sched_getattr 359336 common renameat2 sys_renameat2 360337 common seccomp sys_seccomp 361338 common getrandom sys_getrandom 362339 common memfd_create sys_memfd_create 363340 common bpf sys_bpf 364341 common execveat sys_execveat 365342 common userfaultfd sys_userfaultfd 366343 common membarrier sys_membarrier 367344 common mlock2 sys_mlock2 368345 common copy_file_range sys_copy_file_range 369346 common preadv2 sys_preadv2 370347 common pwritev2 sys_pwritev2 371348 common pkey_mprotect sys_pkey_mprotect 372349 common pkey_alloc sys_pkey_alloc 373350 common pkey_free sys_pkey_free 374351 common statx sys_statx 375352 common rseq sys_rseq 376# 353 through 402 are unassigned to sync up with generic numbers 377403 common clock_gettime64 sys_clock_gettime 378404 common clock_settime64 sys_clock_settime 379405 common clock_adjtime64 sys_clock_adjtime 380406 common clock_getres_time64 sys_clock_getres 381407 common clock_nanosleep_time64 sys_clock_nanosleep 382408 common timer_gettime64 sys_timer_gettime 383409 common timer_settime64 sys_timer_settime 384410 common timerfd_gettime64 sys_timerfd_gettime 385411 common timerfd_settime64 sys_timerfd_settime 386412 common utimensat_time64 sys_utimensat 387413 common pselect6_time64 sys_pselect6 388414 common ppoll_time64 sys_ppoll 389416 common io_pgetevents_time64 sys_io_pgetevents 390417 common recvmmsg_time64 sys_recvmmsg 391418 common mq_timedsend_time64 sys_mq_timedsend 392419 common mq_timedreceive_time64 sys_mq_timedreceive 393420 common semtimedop_time64 sys_semtimedop 394421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 395422 common futex_time64 sys_futex 396423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 397424 common pidfd_send_signal sys_pidfd_send_signal 398425 common io_uring_setup sys_io_uring_setup 399426 common io_uring_enter sys_io_uring_enter 400427 common io_uring_register sys_io_uring_register 401428 common open_tree sys_open_tree 402429 common move_mount sys_move_mount 403430 common fsopen sys_fsopen 404431 common fsconfig sys_fsconfig 405432 common fsmount sys_fsmount 406433 common fspick sys_fspick 407434 common pidfd_open sys_pidfd_open 408435 common clone3 sys_clone3 409436 common close_range sys_close_range 410437 common openat2 sys_openat2 411438 common pidfd_getfd sys_pidfd_getfd 412439 common faccessat2 sys_faccessat2 413440 common process_madvise sys_process_madvise 414441 common epoll_pwait2 sys_epoll_pwait2 415442 common mount_setattr sys_mount_setattr 416443 common quotactl_fd sys_quotactl_fd 417444 common landlock_create_ruleset sys_landlock_create_ruleset 418445 common landlock_add_rule sys_landlock_add_rule 419446 common landlock_restrict_self sys_landlock_restrict_self 420# 447 reserved for memfd_secret 421448 common process_mrelease sys_process_mrelease 422449 common futex_waitv sys_futex_waitv 423