1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2# 3# system call numbers and entry vectors for mips 4# 5# The format is: 6# <number> <abi> <name> <entry point> 7# 8# The <abi> is always "n64" for this file. 9# 100 n64 read sys_read 111 n64 write sys_write 122 n64 open sys_open 133 n64 close sys_close 144 n64 stat sys_newstat 155 n64 fstat sys_newfstat 166 n64 lstat sys_newlstat 177 n64 poll sys_poll 188 n64 lseek sys_lseek 199 n64 mmap sys_mips_mmap 2010 n64 mprotect sys_mprotect 2111 n64 munmap sys_munmap 2212 n64 brk sys_brk 2313 n64 rt_sigaction sys_rt_sigaction 2414 n64 rt_sigprocmask sys_rt_sigprocmask 2515 n64 ioctl sys_ioctl 2616 n64 pread64 sys_pread64 2717 n64 pwrite64 sys_pwrite64 2818 n64 readv sys_readv 2919 n64 writev sys_writev 3020 n64 access sys_access 3121 n64 pipe sysm_pipe 3222 n64 _newselect sys_select 3323 n64 sched_yield sys_sched_yield 3424 n64 mremap sys_mremap 3525 n64 msync sys_msync 3626 n64 mincore sys_mincore 3727 n64 madvise sys_madvise 3828 n64 shmget sys_shmget 3929 n64 shmat sys_shmat 4030 n64 shmctl sys_old_shmctl 4131 n64 dup sys_dup 4232 n64 dup2 sys_dup2 4333 n64 pause sys_pause 4434 n64 nanosleep sys_nanosleep 4535 n64 getitimer sys_getitimer 4636 n64 setitimer sys_setitimer 4737 n64 alarm sys_alarm 4838 n64 getpid sys_getpid 4939 n64 sendfile sys_sendfile64 5040 n64 socket sys_socket 5141 n64 connect sys_connect 5242 n64 accept sys_accept 5343 n64 sendto sys_sendto 5444 n64 recvfrom sys_recvfrom 5545 n64 sendmsg sys_sendmsg 5646 n64 recvmsg sys_recvmsg 5747 n64 shutdown sys_shutdown 5848 n64 bind sys_bind 5949 n64 listen sys_listen 6050 n64 getsockname sys_getsockname 6151 n64 getpeername sys_getpeername 6252 n64 socketpair sys_socketpair 6353 n64 setsockopt sys_setsockopt 6454 n64 getsockopt sys_getsockopt 6555 n64 clone __sys_clone 6656 n64 fork __sys_fork 6757 n64 execve sys_execve 6858 n64 exit sys_exit 6959 n64 wait4 sys_wait4 7060 n64 kill sys_kill 7161 n64 uname sys_newuname 7262 n64 semget sys_semget 7363 n64 semop sys_semop 7464 n64 semctl sys_old_semctl 7565 n64 shmdt sys_shmdt 7666 n64 msgget sys_msgget 7767 n64 msgsnd sys_msgsnd 7868 n64 msgrcv sys_msgrcv 7969 n64 msgctl sys_old_msgctl 8070 n64 fcntl sys_fcntl 8171 n64 flock sys_flock 8272 n64 fsync sys_fsync 8373 n64 fdatasync sys_fdatasync 8474 n64 truncate sys_truncate 8575 n64 ftruncate sys_ftruncate 8676 n64 getdents sys_getdents 8777 n64 getcwd sys_getcwd 8878 n64 chdir sys_chdir 8979 n64 fchdir sys_fchdir 9080 n64 rename sys_rename 9181 n64 mkdir sys_mkdir 9282 n64 rmdir sys_rmdir 9383 n64 creat sys_creat 9484 n64 link sys_link 9585 n64 unlink sys_unlink 9686 n64 symlink sys_symlink 9787 n64 readlink sys_readlink 9888 n64 chmod sys_chmod 9989 n64 fchmod sys_fchmod 10090 n64 chown sys_chown 10191 n64 fchown sys_fchown 10292 n64 lchown sys_lchown 10393 n64 umask sys_umask 10494 n64 gettimeofday sys_gettimeofday 10595 n64 getrlimit sys_getrlimit 10696 n64 getrusage sys_getrusage 10797 n64 sysinfo sys_sysinfo 10898 n64 times sys_times 10999 n64 ptrace sys_ptrace 110100 n64 getuid sys_getuid 111101 n64 syslog sys_syslog 112102 n64 getgid sys_getgid 113103 n64 setuid sys_setuid 114104 n64 setgid sys_setgid 115105 n64 geteuid sys_geteuid 116106 n64 getegid sys_getegid 117107 n64 setpgid sys_setpgid 118108 n64 getppid sys_getppid 119109 n64 getpgrp sys_getpgrp 120110 n64 setsid sys_setsid 121111 n64 setreuid sys_setreuid 122112 n64 setregid sys_setregid 123113 n64 getgroups sys_getgroups 124114 n64 setgroups sys_setgroups 125115 n64 setresuid sys_setresuid 126116 n64 getresuid sys_getresuid 127117 n64 setresgid sys_setresgid 128118 n64 getresgid sys_getresgid 129119 n64 getpgid sys_getpgid 130120 n64 setfsuid sys_setfsuid 131121 n64 setfsgid sys_setfsgid 132122 n64 getsid sys_getsid 133123 n64 capget sys_capget 134124 n64 capset sys_capset 135125 n64 rt_sigpending sys_rt_sigpending 136126 n64 rt_sigtimedwait sys_rt_sigtimedwait 137127 n64 rt_sigqueueinfo sys_rt_sigqueueinfo 138128 n64 rt_sigsuspend sys_rt_sigsuspend 139129 n64 sigaltstack sys_sigaltstack 140130 n64 utime sys_utime 141131 n64 mknod sys_mknod 142132 n64 personality sys_personality 143133 n64 ustat sys_ustat 144134 n64 statfs sys_statfs 145135 n64 fstatfs sys_fstatfs 146136 n64 sysfs sys_sysfs 147137 n64 getpriority sys_getpriority 148138 n64 setpriority sys_setpriority 149139 n64 sched_setparam sys_sched_setparam 150140 n64 sched_getparam sys_sched_getparam 151141 n64 sched_setscheduler sys_sched_setscheduler 152142 n64 sched_getscheduler sys_sched_getscheduler 153143 n64 sched_get_priority_max sys_sched_get_priority_max 154144 n64 sched_get_priority_min sys_sched_get_priority_min 155145 n64 sched_rr_get_interval sys_sched_rr_get_interval 156146 n64 mlock sys_mlock 157147 n64 munlock sys_munlock 158148 n64 mlockall sys_mlockall 159149 n64 munlockall sys_munlockall 160150 n64 vhangup sys_vhangup 161151 n64 pivot_root sys_pivot_root 162152 n64 _sysctl sys_ni_syscall 163153 n64 prctl sys_prctl 164154 n64 adjtimex sys_adjtimex 165155 n64 setrlimit sys_setrlimit 166156 n64 chroot sys_chroot 167157 n64 sync sys_sync 168158 n64 acct sys_acct 169159 n64 settimeofday sys_settimeofday 170160 n64 mount sys_mount 171161 n64 umount2 sys_umount 172162 n64 swapon sys_swapon 173163 n64 swapoff sys_swapoff 174164 n64 reboot sys_reboot 175165 n64 sethostname sys_sethostname 176166 n64 setdomainname sys_setdomainname 177167 n64 create_module sys_ni_syscall 178168 n64 init_module sys_init_module 179169 n64 delete_module sys_delete_module 180170 n64 get_kernel_syms sys_ni_syscall 181171 n64 query_module sys_ni_syscall 182172 n64 quotactl sys_quotactl 183173 n64 nfsservctl sys_ni_syscall 184174 n64 getpmsg sys_ni_syscall 185175 n64 putpmsg sys_ni_syscall 186176 n64 afs_syscall sys_ni_syscall 187# 177 reserved for security 188177 n64 reserved177 sys_ni_syscall 189178 n64 gettid sys_gettid 190179 n64 readahead sys_readahead 191180 n64 setxattr sys_setxattr 192181 n64 lsetxattr sys_lsetxattr 193182 n64 fsetxattr sys_fsetxattr 194183 n64 getxattr sys_getxattr 195184 n64 lgetxattr sys_lgetxattr 196185 n64 fgetxattr sys_fgetxattr 197186 n64 listxattr sys_listxattr 198187 n64 llistxattr sys_llistxattr 199188 n64 flistxattr sys_flistxattr 200189 n64 removexattr sys_removexattr 201190 n64 lremovexattr sys_lremovexattr 202191 n64 fremovexattr sys_fremovexattr 203192 n64 tkill sys_tkill 204193 n64 reserved193 sys_ni_syscall 205194 n64 futex sys_futex 206195 n64 sched_setaffinity sys_sched_setaffinity 207196 n64 sched_getaffinity sys_sched_getaffinity 208197 n64 cacheflush sys_cacheflush 209198 n64 cachectl sys_cachectl 210199 n64 sysmips __sys_sysmips 211200 n64 io_setup sys_io_setup 212201 n64 io_destroy sys_io_destroy 213202 n64 io_getevents sys_io_getevents 214203 n64 io_submit sys_io_submit 215204 n64 io_cancel sys_io_cancel 216205 n64 exit_group sys_exit_group 217206 n64 lookup_dcookie sys_ni_syscall 218207 n64 epoll_create sys_epoll_create 219208 n64 epoll_ctl sys_epoll_ctl 220209 n64 epoll_wait sys_epoll_wait 221210 n64 remap_file_pages sys_remap_file_pages 222211 n64 rt_sigreturn sys_rt_sigreturn 223212 n64 set_tid_address sys_set_tid_address 224213 n64 restart_syscall sys_restart_syscall 225214 n64 semtimedop sys_semtimedop 226215 n64 fadvise64 sys_fadvise64_64 227216 n64 timer_create sys_timer_create 228217 n64 timer_settime sys_timer_settime 229218 n64 timer_gettime sys_timer_gettime 230219 n64 timer_getoverrun sys_timer_getoverrun 231220 n64 timer_delete sys_timer_delete 232221 n64 clock_settime sys_clock_settime 233222 n64 clock_gettime sys_clock_gettime 234223 n64 clock_getres sys_clock_getres 235224 n64 clock_nanosleep sys_clock_nanosleep 236225 n64 tgkill sys_tgkill 237226 n64 utimes sys_utimes 238227 n64 mbind sys_mbind 239228 n64 get_mempolicy sys_get_mempolicy 240229 n64 set_mempolicy sys_set_mempolicy 241230 n64 mq_open sys_mq_open 242231 n64 mq_unlink sys_mq_unlink 243232 n64 mq_timedsend sys_mq_timedsend 244233 n64 mq_timedreceive sys_mq_timedreceive 245234 n64 mq_notify sys_mq_notify 246235 n64 mq_getsetattr sys_mq_getsetattr 247236 n64 vserver sys_ni_syscall 248237 n64 waitid sys_waitid 249# 238 was sys_setaltroot 250239 n64 add_key sys_add_key 251240 n64 request_key sys_request_key 252241 n64 keyctl sys_keyctl 253242 n64 set_thread_area sys_set_thread_area 254243 n64 inotify_init sys_inotify_init 255244 n64 inotify_add_watch sys_inotify_add_watch 256245 n64 inotify_rm_watch sys_inotify_rm_watch 257246 n64 migrate_pages sys_migrate_pages 258247 n64 openat sys_openat 259248 n64 mkdirat sys_mkdirat 260249 n64 mknodat sys_mknodat 261250 n64 fchownat sys_fchownat 262251 n64 futimesat sys_futimesat 263252 n64 newfstatat sys_newfstatat 264253 n64 unlinkat sys_unlinkat 265254 n64 renameat sys_renameat 266255 n64 linkat sys_linkat 267256 n64 symlinkat sys_symlinkat 268257 n64 readlinkat sys_readlinkat 269258 n64 fchmodat sys_fchmodat 270259 n64 faccessat sys_faccessat 271260 n64 pselect6 sys_pselect6 272261 n64 ppoll sys_ppoll 273262 n64 unshare sys_unshare 274263 n64 splice sys_splice 275264 n64 sync_file_range sys_sync_file_range 276265 n64 tee sys_tee 277266 n64 vmsplice sys_vmsplice 278267 n64 move_pages sys_move_pages 279268 n64 set_robust_list sys_set_robust_list 280269 n64 get_robust_list sys_get_robust_list 281270 n64 kexec_load sys_kexec_load 282271 n64 getcpu sys_getcpu 283272 n64 epoll_pwait sys_epoll_pwait 284273 n64 ioprio_set sys_ioprio_set 285274 n64 ioprio_get sys_ioprio_get 286275 n64 utimensat sys_utimensat 287276 n64 signalfd sys_signalfd 288277 n64 timerfd sys_ni_syscall 289278 n64 eventfd sys_eventfd 290279 n64 fallocate sys_fallocate 291280 n64 timerfd_create sys_timerfd_create 292281 n64 timerfd_gettime sys_timerfd_gettime 293282 n64 timerfd_settime sys_timerfd_settime 294283 n64 signalfd4 sys_signalfd4 295284 n64 eventfd2 sys_eventfd2 296285 n64 epoll_create1 sys_epoll_create1 297286 n64 dup3 sys_dup3 298287 n64 pipe2 sys_pipe2 299288 n64 inotify_init1 sys_inotify_init1 300289 n64 preadv sys_preadv 301290 n64 pwritev sys_pwritev 302291 n64 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 303292 n64 perf_event_open sys_perf_event_open 304293 n64 accept4 sys_accept4 305294 n64 recvmmsg sys_recvmmsg 306295 n64 fanotify_init sys_fanotify_init 307296 n64 fanotify_mark sys_fanotify_mark 308297 n64 prlimit64 sys_prlimit64 309298 n64 name_to_handle_at sys_name_to_handle_at 310299 n64 open_by_handle_at sys_open_by_handle_at 311300 n64 clock_adjtime sys_clock_adjtime 312301 n64 syncfs sys_syncfs 313302 n64 sendmmsg sys_sendmmsg 314303 n64 setns sys_setns 315304 n64 process_vm_readv sys_process_vm_readv 316305 n64 process_vm_writev sys_process_vm_writev 317306 n64 kcmp sys_kcmp 318307 n64 finit_module sys_finit_module 319308 n64 getdents64 sys_getdents64 320309 n64 sched_setattr sys_sched_setattr 321310 n64 sched_getattr sys_sched_getattr 322311 n64 renameat2 sys_renameat2 323312 n64 seccomp sys_seccomp 324313 n64 getrandom sys_getrandom 325314 n64 memfd_create sys_memfd_create 326315 n64 bpf sys_bpf 327316 n64 execveat sys_execveat 328317 n64 userfaultfd sys_userfaultfd 329318 n64 membarrier sys_membarrier 330319 n64 mlock2 sys_mlock2 331320 n64 copy_file_range sys_copy_file_range 332321 n64 preadv2 sys_preadv2 333322 n64 pwritev2 sys_pwritev2 334323 n64 pkey_mprotect sys_pkey_mprotect 335324 n64 pkey_alloc sys_pkey_alloc 336325 n64 pkey_free sys_pkey_free 337326 n64 statx sys_statx 338327 n64 rseq sys_rseq 339328 n64 io_pgetevents sys_io_pgetevents 340# 329 through 423 are reserved to sync up with other architectures 341424 n64 pidfd_send_signal sys_pidfd_send_signal 342425 n64 io_uring_setup sys_io_uring_setup 343426 n64 io_uring_enter sys_io_uring_enter 344427 n64 io_uring_register sys_io_uring_register 345428 n64 open_tree sys_open_tree 346429 n64 move_mount sys_move_mount 347430 n64 fsopen sys_fsopen 348431 n64 fsconfig sys_fsconfig 349432 n64 fsmount sys_fsmount 350433 n64 fspick sys_fspick 351434 n64 pidfd_open sys_pidfd_open 352435 n64 clone3 __sys_clone3 353436 n64 close_range sys_close_range 354437 n64 openat2 sys_openat2 355438 n64 pidfd_getfd sys_pidfd_getfd 356439 n64 faccessat2 sys_faccessat2 357440 n64 process_madvise sys_process_madvise 358441 n64 epoll_pwait2 sys_epoll_pwait2 359442 n64 mount_setattr sys_mount_setattr 360443 n64 quotactl_fd sys_quotactl_fd 361444 n64 landlock_create_ruleset sys_landlock_create_ruleset 362445 n64 landlock_add_rule sys_landlock_add_rule 363446 n64 landlock_restrict_self sys_landlock_restrict_self 364# 447 reserved for memfd_secret 365448 n64 process_mrelease sys_process_mrelease 366449 n64 futex_waitv sys_futex_waitv 367450 common set_mempolicy_home_node sys_set_mempolicy_home_node 368451 n64 cachestat sys_cachestat 369452 n64 fchmodat2 sys_fchmodat2 370453 n64 map_shadow_stack sys_map_shadow_stack 371454 n64 futex_wake sys_futex_wake 372455 n64 futex_wait sys_futex_wait 373456 n64 futex_requeue sys_futex_requeue 374457 n64 statmount sys_statmount 375458 n64 listmount sys_listmount 376459 n64 lsm_get_self_attr sys_lsm_get_self_attr 377460 n64 lsm_set_self_attr sys_lsm_set_self_attr 378461 n64 lsm_list_modules sys_lsm_list_modules 379462 n64 mseal sys_mseal 380