~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/kernel/sys_ni.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /kernel/sys_ni.c (Version linux-6.11.5) and /kernel/sys_ni.c (Version linux-5.2.21)


  1 // SPDX-License-Identifier: GPL-2.0                 1 // SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 #include <linux/linkage.h>                          3 #include <linux/linkage.h>
  4 #include <linux/errno.h>                            4 #include <linux/errno.h>
  5                                                     5 
  6 #include <asm/unistd.h>                             6 #include <asm/unistd.h>
  7                                                     7 
  8 #ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER              8 #ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER
  9 /* Architectures may override COND_SYSCALL and      9 /* Architectures may override COND_SYSCALL and COND_SYSCALL_COMPAT */
 10 #include <asm/syscall_wrapper.h>                   10 #include <asm/syscall_wrapper.h>
 11 #endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */       11 #endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */
 12                                                    12 
 13 /*  we can't #include <linux/syscalls.h> here,     13 /*  we can't #include <linux/syscalls.h> here,
 14     but tell gcc to not warn with -Wmissing-pr     14     but tell gcc to not warn with -Wmissing-prototypes  */
 15 asmlinkage long sys_ni_syscall(void);              15 asmlinkage long sys_ni_syscall(void);
 16                                                    16 
 17 /*                                                 17 /*
 18  * Non-implemented system calls get redirected     18  * Non-implemented system calls get redirected here.
 19  */                                                19  */
 20 asmlinkage long sys_ni_syscall(void)               20 asmlinkage long sys_ni_syscall(void)
 21 {                                                  21 {
 22         return -ENOSYS;                            22         return -ENOSYS;
 23 }                                                  23 }
 24                                                    24 
 25 #ifndef COND_SYSCALL                               25 #ifndef COND_SYSCALL
 26 #define COND_SYSCALL(name) cond_syscall(sys_##     26 #define COND_SYSCALL(name) cond_syscall(sys_##name)
 27 #endif /* COND_SYSCALL */                          27 #endif /* COND_SYSCALL */
 28                                                    28 
 29 #ifndef COND_SYSCALL_COMPAT                        29 #ifndef COND_SYSCALL_COMPAT
 30 #define COND_SYSCALL_COMPAT(name) cond_syscall     30 #define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name)
 31 #endif /* COND_SYSCALL_COMPAT */                   31 #endif /* COND_SYSCALL_COMPAT */
 32                                                    32 
 33 /*                                                 33 /*
 34  * This list is kept in the same order as incl     34  * This list is kept in the same order as include/uapi/asm-generic/unistd.h.
 35  * Architecture specific entries go below, fol     35  * Architecture specific entries go below, followed by deprecated or obsolete
 36  * system calls.                                   36  * system calls.
 37  */                                                37  */
 38                                                    38 
 39 COND_SYSCALL(io_setup);                            39 COND_SYSCALL(io_setup);
 40 COND_SYSCALL_COMPAT(io_setup);                     40 COND_SYSCALL_COMPAT(io_setup);
 41 COND_SYSCALL(io_destroy);                          41 COND_SYSCALL(io_destroy);
 42 COND_SYSCALL(io_submit);                           42 COND_SYSCALL(io_submit);
 43 COND_SYSCALL_COMPAT(io_submit);                    43 COND_SYSCALL_COMPAT(io_submit);
 44 COND_SYSCALL(io_cancel);                           44 COND_SYSCALL(io_cancel);
 45 COND_SYSCALL(io_getevents_time32);                 45 COND_SYSCALL(io_getevents_time32);
 46 COND_SYSCALL(io_getevents);                        46 COND_SYSCALL(io_getevents);
 47 COND_SYSCALL(io_pgetevents_time32);                47 COND_SYSCALL(io_pgetevents_time32);
 48 COND_SYSCALL(io_pgetevents);                       48 COND_SYSCALL(io_pgetevents);
                                                   >>  49 COND_SYSCALL_COMPAT(io_pgetevents_time32);
 49 COND_SYSCALL_COMPAT(io_pgetevents);                50 COND_SYSCALL_COMPAT(io_pgetevents);
 50 COND_SYSCALL_COMPAT(io_pgetevents_time64);     << 
 51 COND_SYSCALL(io_uring_setup);                      51 COND_SYSCALL(io_uring_setup);
 52 COND_SYSCALL(io_uring_enter);                      52 COND_SYSCALL(io_uring_enter);
 53 COND_SYSCALL(io_uring_register);                   53 COND_SYSCALL(io_uring_register);
                                                   >>  54 
                                                   >>  55 /* fs/xattr.c */
                                                   >>  56 
                                                   >>  57 /* fs/dcache.c */
                                                   >>  58 
                                                   >>  59 /* fs/cookies.c */
                                                   >>  60 COND_SYSCALL(lookup_dcookie);
                                                   >>  61 COND_SYSCALL_COMPAT(lookup_dcookie);
                                                   >>  62 
                                                   >>  63 /* fs/eventfd.c */
 54 COND_SYSCALL(eventfd2);                            64 COND_SYSCALL(eventfd2);
                                                   >>  65 
                                                   >>  66 /* fs/eventfd.c */
 55 COND_SYSCALL(epoll_create1);                       67 COND_SYSCALL(epoll_create1);
 56 COND_SYSCALL(epoll_ctl);                           68 COND_SYSCALL(epoll_ctl);
 57 COND_SYSCALL(epoll_pwait);                         69 COND_SYSCALL(epoll_pwait);
 58 COND_SYSCALL_COMPAT(epoll_pwait);                  70 COND_SYSCALL_COMPAT(epoll_pwait);
 59 COND_SYSCALL(epoll_pwait2);                    !!  71 
 60 COND_SYSCALL_COMPAT(epoll_pwait2);             !!  72 /* fs/fcntl.c */
                                                   >>  73 
                                                   >>  74 /* fs/inotify_user.c */
 61 COND_SYSCALL(inotify_init1);                       75 COND_SYSCALL(inotify_init1);
 62 COND_SYSCALL(inotify_add_watch);                   76 COND_SYSCALL(inotify_add_watch);
 63 COND_SYSCALL(inotify_rm_watch);                    77 COND_SYSCALL(inotify_rm_watch);
                                                   >>  78 
                                                   >>  79 /* fs/ioctl.c */
                                                   >>  80 
                                                   >>  81 /* fs/ioprio.c */
 64 COND_SYSCALL(ioprio_set);                          82 COND_SYSCALL(ioprio_set);
 65 COND_SYSCALL(ioprio_get);                          83 COND_SYSCALL(ioprio_get);
                                                   >>  84 
                                                   >>  85 /* fs/locks.c */
 66 COND_SYSCALL(flock);                               86 COND_SYSCALL(flock);
                                                   >>  87 
                                                   >>  88 /* fs/namei.c */
                                                   >>  89 
                                                   >>  90 /* fs/namespace.c */
                                                   >>  91 
                                                   >>  92 /* fs/nfsctl.c */
                                                   >>  93 
                                                   >>  94 /* fs/open.c */
                                                   >>  95 
                                                   >>  96 /* fs/pipe.c */
                                                   >>  97 
                                                   >>  98 /* fs/quota.c */
 67 COND_SYSCALL(quotactl);                            99 COND_SYSCALL(quotactl);
 68 COND_SYSCALL(quotactl_fd);                     !! 100 
                                                   >> 101 /* fs/readdir.c */
                                                   >> 102 
                                                   >> 103 /* fs/read_write.c */
                                                   >> 104 
                                                   >> 105 /* fs/sendfile.c */
                                                   >> 106 
                                                   >> 107 /* fs/select.c */
                                                   >> 108 
                                                   >> 109 /* fs/signalfd.c */
 69 COND_SYSCALL(signalfd4);                          110 COND_SYSCALL(signalfd4);
 70 COND_SYSCALL_COMPAT(signalfd4);                   111 COND_SYSCALL_COMPAT(signalfd4);
                                                   >> 112 
                                                   >> 113 /* fs/splice.c */
                                                   >> 114 
                                                   >> 115 /* fs/stat.c */
                                                   >> 116 
                                                   >> 117 /* fs/sync.c */
                                                   >> 118 
                                                   >> 119 /* fs/timerfd.c */
 71 COND_SYSCALL(timerfd_create);                     120 COND_SYSCALL(timerfd_create);
 72 COND_SYSCALL(timerfd_settime);                    121 COND_SYSCALL(timerfd_settime);
 73 COND_SYSCALL(timerfd_settime32);                  122 COND_SYSCALL(timerfd_settime32);
 74 COND_SYSCALL(timerfd_gettime);                    123 COND_SYSCALL(timerfd_gettime);
 75 COND_SYSCALL(timerfd_gettime32);                  124 COND_SYSCALL(timerfd_gettime32);
                                                   >> 125 
                                                   >> 126 /* fs/utimes.c */
                                                   >> 127 
                                                   >> 128 /* kernel/acct.c */
 76 COND_SYSCALL(acct);                               129 COND_SYSCALL(acct);
                                                   >> 130 
                                                   >> 131 /* kernel/capability.c */
 77 COND_SYSCALL(capget);                             132 COND_SYSCALL(capget);
 78 COND_SYSCALL(capset);                             133 COND_SYSCALL(capset);
                                                   >> 134 
                                                   >> 135 /* kernel/exec_domain.c */
                                                   >> 136 
                                                   >> 137 /* kernel/exit.c */
                                                   >> 138 
                                                   >> 139 /* kernel/fork.c */
                                                   >> 140 
                                                   >> 141 /* kernel/futex.c */
 79 COND_SYSCALL(futex);                              142 COND_SYSCALL(futex);
 80 COND_SYSCALL(futex_time32);                       143 COND_SYSCALL(futex_time32);
 81 COND_SYSCALL(set_robust_list);                    144 COND_SYSCALL(set_robust_list);
 82 COND_SYSCALL_COMPAT(set_robust_list);             145 COND_SYSCALL_COMPAT(set_robust_list);
 83 COND_SYSCALL(get_robust_list);                    146 COND_SYSCALL(get_robust_list);
 84 COND_SYSCALL_COMPAT(get_robust_list);             147 COND_SYSCALL_COMPAT(get_robust_list);
 85 COND_SYSCALL(futex_waitv);                     !! 148 
 86 COND_SYSCALL(futex_wake);                      !! 149 /* kernel/hrtimer.c */
 87 COND_SYSCALL(futex_wait);                      !! 150 
 88 COND_SYSCALL(futex_requeue);                   !! 151 /* kernel/itimer.c */
                                                   >> 152 
                                                   >> 153 /* kernel/kexec.c */
 89 COND_SYSCALL(kexec_load);                         154 COND_SYSCALL(kexec_load);
 90 COND_SYSCALL_COMPAT(kexec_load);                  155 COND_SYSCALL_COMPAT(kexec_load);
                                                   >> 156 
                                                   >> 157 /* kernel/module.c */
 91 COND_SYSCALL(init_module);                        158 COND_SYSCALL(init_module);
 92 COND_SYSCALL(delete_module);                      159 COND_SYSCALL(delete_module);
                                                   >> 160 
                                                   >> 161 /* kernel/posix-timers.c */
                                                   >> 162 
                                                   >> 163 /* kernel/printk.c */
 93 COND_SYSCALL(syslog);                             164 COND_SYSCALL(syslog);
                                                   >> 165 
                                                   >> 166 /* kernel/ptrace.c */
                                                   >> 167 
                                                   >> 168 /* kernel/sched/core.c */
                                                   >> 169 
                                                   >> 170 /* kernel/sys.c */
 94 COND_SYSCALL(setregid);                           171 COND_SYSCALL(setregid);
 95 COND_SYSCALL(setgid);                             172 COND_SYSCALL(setgid);
 96 COND_SYSCALL(setreuid);                           173 COND_SYSCALL(setreuid);
 97 COND_SYSCALL(setuid);                             174 COND_SYSCALL(setuid);
 98 COND_SYSCALL(setresuid);                          175 COND_SYSCALL(setresuid);
 99 COND_SYSCALL(getresuid);                          176 COND_SYSCALL(getresuid);
100 COND_SYSCALL(setresgid);                          177 COND_SYSCALL(setresgid);
101 COND_SYSCALL(getresgid);                          178 COND_SYSCALL(getresgid);
102 COND_SYSCALL(setfsuid);                           179 COND_SYSCALL(setfsuid);
103 COND_SYSCALL(setfsgid);                           180 COND_SYSCALL(setfsgid);
104 COND_SYSCALL(setgroups);                          181 COND_SYSCALL(setgroups);
105 COND_SYSCALL(getgroups);                          182 COND_SYSCALL(getgroups);
                                                   >> 183 
                                                   >> 184 /* kernel/time.c */
                                                   >> 185 
                                                   >> 186 /* kernel/timer.c */
                                                   >> 187 
                                                   >> 188 /* ipc/mqueue.c */
106 COND_SYSCALL(mq_open);                            189 COND_SYSCALL(mq_open);
107 COND_SYSCALL_COMPAT(mq_open);                     190 COND_SYSCALL_COMPAT(mq_open);
108 COND_SYSCALL(mq_unlink);                          191 COND_SYSCALL(mq_unlink);
109 COND_SYSCALL(mq_timedsend);                       192 COND_SYSCALL(mq_timedsend);
110 COND_SYSCALL(mq_timedsend_time32);                193 COND_SYSCALL(mq_timedsend_time32);
111 COND_SYSCALL(mq_timedreceive);                    194 COND_SYSCALL(mq_timedreceive);
112 COND_SYSCALL(mq_timedreceive_time32);             195 COND_SYSCALL(mq_timedreceive_time32);
113 COND_SYSCALL(mq_notify);                          196 COND_SYSCALL(mq_notify);
114 COND_SYSCALL_COMPAT(mq_notify);                   197 COND_SYSCALL_COMPAT(mq_notify);
115 COND_SYSCALL(mq_getsetattr);                      198 COND_SYSCALL(mq_getsetattr);
116 COND_SYSCALL_COMPAT(mq_getsetattr);               199 COND_SYSCALL_COMPAT(mq_getsetattr);
                                                   >> 200 
                                                   >> 201 /* ipc/msg.c */
117 COND_SYSCALL(msgget);                             202 COND_SYSCALL(msgget);
118 COND_SYSCALL(old_msgctl);                         203 COND_SYSCALL(old_msgctl);
119 COND_SYSCALL(msgctl);                             204 COND_SYSCALL(msgctl);
120 COND_SYSCALL_COMPAT(msgctl);                      205 COND_SYSCALL_COMPAT(msgctl);
121 COND_SYSCALL_COMPAT(old_msgctl);                  206 COND_SYSCALL_COMPAT(old_msgctl);
122 COND_SYSCALL(msgrcv);                             207 COND_SYSCALL(msgrcv);
123 COND_SYSCALL_COMPAT(msgrcv);                      208 COND_SYSCALL_COMPAT(msgrcv);
124 COND_SYSCALL(msgsnd);                             209 COND_SYSCALL(msgsnd);
125 COND_SYSCALL_COMPAT(msgsnd);                      210 COND_SYSCALL_COMPAT(msgsnd);
                                                   >> 211 
                                                   >> 212 /* ipc/sem.c */
126 COND_SYSCALL(semget);                             213 COND_SYSCALL(semget);
127 COND_SYSCALL(old_semctl);                         214 COND_SYSCALL(old_semctl);
128 COND_SYSCALL(semctl);                             215 COND_SYSCALL(semctl);
129 COND_SYSCALL_COMPAT(semctl);                      216 COND_SYSCALL_COMPAT(semctl);
130 COND_SYSCALL_COMPAT(old_semctl);                  217 COND_SYSCALL_COMPAT(old_semctl);
131 COND_SYSCALL(semtimedop);                         218 COND_SYSCALL(semtimedop);
132 COND_SYSCALL(semtimedop_time32);                  219 COND_SYSCALL(semtimedop_time32);
133 COND_SYSCALL(semop);                              220 COND_SYSCALL(semop);
                                                   >> 221 
                                                   >> 222 /* ipc/shm.c */
134 COND_SYSCALL(shmget);                             223 COND_SYSCALL(shmget);
135 COND_SYSCALL(old_shmctl);                         224 COND_SYSCALL(old_shmctl);
136 COND_SYSCALL(shmctl);                             225 COND_SYSCALL(shmctl);
137 COND_SYSCALL_COMPAT(shmctl);                      226 COND_SYSCALL_COMPAT(shmctl);
138 COND_SYSCALL_COMPAT(old_shmctl);                  227 COND_SYSCALL_COMPAT(old_shmctl);
139 COND_SYSCALL(shmat);                              228 COND_SYSCALL(shmat);
140 COND_SYSCALL_COMPAT(shmat);                       229 COND_SYSCALL_COMPAT(shmat);
141 COND_SYSCALL(shmdt);                              230 COND_SYSCALL(shmdt);
                                                   >> 231 
                                                   >> 232 /* net/socket.c */
142 COND_SYSCALL(socket);                             233 COND_SYSCALL(socket);
143 COND_SYSCALL(socketpair);                         234 COND_SYSCALL(socketpair);
144 COND_SYSCALL(bind);                               235 COND_SYSCALL(bind);
145 COND_SYSCALL(listen);                             236 COND_SYSCALL(listen);
146 COND_SYSCALL(accept);                             237 COND_SYSCALL(accept);
147 COND_SYSCALL(connect);                            238 COND_SYSCALL(connect);
148 COND_SYSCALL(getsockname);                        239 COND_SYSCALL(getsockname);
149 COND_SYSCALL(getpeername);                        240 COND_SYSCALL(getpeername);
150 COND_SYSCALL(setsockopt);                         241 COND_SYSCALL(setsockopt);
151 COND_SYSCALL_COMPAT(setsockopt);                  242 COND_SYSCALL_COMPAT(setsockopt);
152 COND_SYSCALL(getsockopt);                         243 COND_SYSCALL(getsockopt);
153 COND_SYSCALL_COMPAT(getsockopt);                  244 COND_SYSCALL_COMPAT(getsockopt);
154 COND_SYSCALL(sendto);                             245 COND_SYSCALL(sendto);
155 COND_SYSCALL(shutdown);                           246 COND_SYSCALL(shutdown);
156 COND_SYSCALL(recvfrom);                           247 COND_SYSCALL(recvfrom);
157 COND_SYSCALL_COMPAT(recvfrom);                    248 COND_SYSCALL_COMPAT(recvfrom);
158 COND_SYSCALL(sendmsg);                            249 COND_SYSCALL(sendmsg);
159 COND_SYSCALL_COMPAT(sendmsg);                     250 COND_SYSCALL_COMPAT(sendmsg);
160 COND_SYSCALL(recvmsg);                            251 COND_SYSCALL(recvmsg);
161 COND_SYSCALL_COMPAT(recvmsg);                     252 COND_SYSCALL_COMPAT(recvmsg);
                                                   >> 253 
                                                   >> 254 /* mm/filemap.c */
                                                   >> 255 
                                                   >> 256 /* mm/nommu.c, also with MMU */
162 COND_SYSCALL(mremap);                             257 COND_SYSCALL(mremap);
                                                   >> 258 
                                                   >> 259 /* security/keys/keyctl.c */
163 COND_SYSCALL(add_key);                            260 COND_SYSCALL(add_key);
164 COND_SYSCALL(request_key);                        261 COND_SYSCALL(request_key);
165 COND_SYSCALL(keyctl);                             262 COND_SYSCALL(keyctl);
166 COND_SYSCALL_COMPAT(keyctl);                      263 COND_SYSCALL_COMPAT(keyctl);
167 COND_SYSCALL(landlock_create_ruleset);         !! 264 
168 COND_SYSCALL(landlock_add_rule);               !! 265 /* arch/example/kernel/sys_example.c */
169 COND_SYSCALL(landlock_restrict_self);          !! 266 
                                                   >> 267 /* mm/fadvise.c */
170 COND_SYSCALL(fadvise64_64);                       268 COND_SYSCALL(fadvise64_64);
171 COND_SYSCALL_COMPAT(fadvise64_64);             << 
172 COND_SYSCALL(lsm_get_self_attr);               << 
173 COND_SYSCALL(lsm_set_self_attr);               << 
174 COND_SYSCALL(lsm_list_modules);                << 
175                                                   269 
176 /* CONFIG_MMU only */                          !! 270 /* mm/, CONFIG_MMU only */
177 COND_SYSCALL(swapon);                             271 COND_SYSCALL(swapon);
178 COND_SYSCALL(swapoff);                            272 COND_SYSCALL(swapoff);
179 COND_SYSCALL(mprotect);                           273 COND_SYSCALL(mprotect);
180 COND_SYSCALL(msync);                              274 COND_SYSCALL(msync);
181 COND_SYSCALL(mlock);                              275 COND_SYSCALL(mlock);
182 COND_SYSCALL(munlock);                            276 COND_SYSCALL(munlock);
183 COND_SYSCALL(mlockall);                           277 COND_SYSCALL(mlockall);
184 COND_SYSCALL(munlockall);                         278 COND_SYSCALL(munlockall);
185 COND_SYSCALL(mincore);                            279 COND_SYSCALL(mincore);
186 COND_SYSCALL(madvise);                            280 COND_SYSCALL(madvise);
187 COND_SYSCALL(process_madvise);                 << 
188 COND_SYSCALL(process_mrelease);                << 
189 COND_SYSCALL(remap_file_pages);                   281 COND_SYSCALL(remap_file_pages);
190 COND_SYSCALL(mbind);                              282 COND_SYSCALL(mbind);
                                                   >> 283 COND_SYSCALL_COMPAT(mbind);
191 COND_SYSCALL(get_mempolicy);                      284 COND_SYSCALL(get_mempolicy);
                                                   >> 285 COND_SYSCALL_COMPAT(get_mempolicy);
192 COND_SYSCALL(set_mempolicy);                      286 COND_SYSCALL(set_mempolicy);
                                                   >> 287 COND_SYSCALL_COMPAT(set_mempolicy);
193 COND_SYSCALL(migrate_pages);                      288 COND_SYSCALL(migrate_pages);
                                                   >> 289 COND_SYSCALL_COMPAT(migrate_pages);
194 COND_SYSCALL(move_pages);                         290 COND_SYSCALL(move_pages);
195 COND_SYSCALL(set_mempolicy_home_node);         !! 291 COND_SYSCALL_COMPAT(move_pages);
196 COND_SYSCALL(cachestat);                       << 
197 COND_SYSCALL(mseal);                           << 
198                                                   292 
199 COND_SYSCALL(perf_event_open);                    293 COND_SYSCALL(perf_event_open);
200 COND_SYSCALL(accept4);                            294 COND_SYSCALL(accept4);
201 COND_SYSCALL(recvmmsg);                           295 COND_SYSCALL(recvmmsg);
202 COND_SYSCALL(recvmmsg_time32);                    296 COND_SYSCALL(recvmmsg_time32);
203 COND_SYSCALL_COMPAT(recvmmsg_time32);             297 COND_SYSCALL_COMPAT(recvmmsg_time32);
204 COND_SYSCALL_COMPAT(recvmmsg_time64);             298 COND_SYSCALL_COMPAT(recvmmsg_time64);
205                                                   299 
206 /* Posix timer syscalls may be configured out  << 
207 COND_SYSCALL(timer_create);                    << 
208 COND_SYSCALL(timer_gettime);                   << 
209 COND_SYSCALL(timer_getoverrun);                << 
210 COND_SYSCALL(timer_settime);                   << 
211 COND_SYSCALL(timer_delete);                    << 
212 COND_SYSCALL(clock_adjtime);                   << 
213 COND_SYSCALL(getitimer);                       << 
214 COND_SYSCALL(setitimer);                       << 
215 COND_SYSCALL(alarm);                           << 
216 COND_SYSCALL_COMPAT(timer_create);             << 
217 COND_SYSCALL_COMPAT(getitimer);                << 
218 COND_SYSCALL_COMPAT(setitimer);                << 
219                                                << 
220 /*                                                300 /*
221  * Architecture specific syscalls: see further    301  * Architecture specific syscalls: see further below
222  */                                               302  */
223                                                   303 
224 /* fanotify */                                    304 /* fanotify */
225 COND_SYSCALL(fanotify_init);                      305 COND_SYSCALL(fanotify_init);
226 COND_SYSCALL(fanotify_mark);                      306 COND_SYSCALL(fanotify_mark);
227                                                   307 
228 /* open by handle */                              308 /* open by handle */
229 COND_SYSCALL(name_to_handle_at);                  309 COND_SYSCALL(name_to_handle_at);
230 COND_SYSCALL(open_by_handle_at);                  310 COND_SYSCALL(open_by_handle_at);
231 COND_SYSCALL_COMPAT(open_by_handle_at);           311 COND_SYSCALL_COMPAT(open_by_handle_at);
232                                                   312 
233 COND_SYSCALL(sendmmsg);                           313 COND_SYSCALL(sendmmsg);
234 COND_SYSCALL_COMPAT(sendmmsg);                    314 COND_SYSCALL_COMPAT(sendmmsg);
235 COND_SYSCALL(process_vm_readv);                   315 COND_SYSCALL(process_vm_readv);
236 COND_SYSCALL_COMPAT(process_vm_readv);            316 COND_SYSCALL_COMPAT(process_vm_readv);
237 COND_SYSCALL(process_vm_writev);                  317 COND_SYSCALL(process_vm_writev);
238 COND_SYSCALL_COMPAT(process_vm_writev);           318 COND_SYSCALL_COMPAT(process_vm_writev);
239                                                   319 
240 /* compare kernel pointers */                     320 /* compare kernel pointers */
241 COND_SYSCALL(kcmp);                               321 COND_SYSCALL(kcmp);
242                                                   322 
243 COND_SYSCALL(finit_module);                       323 COND_SYSCALL(finit_module);
244                                                   324 
245 /* operate on Secure Computing state */           325 /* operate on Secure Computing state */
246 COND_SYSCALL(seccomp);                            326 COND_SYSCALL(seccomp);
247                                                   327 
248 COND_SYSCALL(memfd_create);                       328 COND_SYSCALL(memfd_create);
249                                                   329 
250 /* access BPF programs and maps */                330 /* access BPF programs and maps */
251 COND_SYSCALL(bpf);                                331 COND_SYSCALL(bpf);
252                                                   332 
253 /* execveat */                                    333 /* execveat */
254 COND_SYSCALL(execveat);                           334 COND_SYSCALL(execveat);
255                                                   335 
256 COND_SYSCALL(userfaultfd);                        336 COND_SYSCALL(userfaultfd);
257                                                   337 
258 /* membarrier */                                  338 /* membarrier */
259 COND_SYSCALL(membarrier);                         339 COND_SYSCALL(membarrier);
260                                                   340 
261 COND_SYSCALL(mlock2);                             341 COND_SYSCALL(mlock2);
262                                                   342 
263 COND_SYSCALL(copy_file_range);                    343 COND_SYSCALL(copy_file_range);
264                                                   344 
265 /* memory protection keys */                      345 /* memory protection keys */
266 COND_SYSCALL(pkey_mprotect);                      346 COND_SYSCALL(pkey_mprotect);
267 COND_SYSCALL(pkey_alloc);                         347 COND_SYSCALL(pkey_alloc);
268 COND_SYSCALL(pkey_free);                          348 COND_SYSCALL(pkey_free);
269                                                   349 
270 /* memfd_secret */                             << 
271 COND_SYSCALL(memfd_secret);                    << 
272                                                   350 
273 /*                                                351 /*
274  * Architecture specific weak syscall entries.    352  * Architecture specific weak syscall entries.
275  */                                               353  */
276                                                   354 
277 /* pciconfig: alpha, arm, arm64, ia64, sparc *    355 /* pciconfig: alpha, arm, arm64, ia64, sparc */
278 COND_SYSCALL(pciconfig_read);                     356 COND_SYSCALL(pciconfig_read);
279 COND_SYSCALL(pciconfig_write);                    357 COND_SYSCALL(pciconfig_write);
280 COND_SYSCALL(pciconfig_iobase);                   358 COND_SYSCALL(pciconfig_iobase);
281                                                   359 
282 /* sys_socketcall: arm, mips, x86, ... */         360 /* sys_socketcall: arm, mips, x86, ... */
283 COND_SYSCALL(socketcall);                         361 COND_SYSCALL(socketcall);
284 COND_SYSCALL_COMPAT(socketcall);                  362 COND_SYSCALL_COMPAT(socketcall);
285                                                   363 
286 /* compat syscalls for arm64, x86, ... */         364 /* compat syscalls for arm64, x86, ... */
                                                   >> 365 COND_SYSCALL_COMPAT(sysctl);
287 COND_SYSCALL_COMPAT(fanotify_mark);               366 COND_SYSCALL_COMPAT(fanotify_mark);
288                                                   367 
289 /* x86 */                                         368 /* x86 */
290 COND_SYSCALL(vm86old);                            369 COND_SYSCALL(vm86old);
291 COND_SYSCALL(modify_ldt);                         370 COND_SYSCALL(modify_ldt);
                                                   >> 371 COND_SYSCALL_COMPAT(quotactl32);
292 COND_SYSCALL(vm86);                               372 COND_SYSCALL(vm86);
293 COND_SYSCALL(kexec_file_load);                    373 COND_SYSCALL(kexec_file_load);
294 COND_SYSCALL(map_shadow_stack);                << 
295                                                   374 
296 /* s390 */                                        375 /* s390 */
297 COND_SYSCALL(s390_pci_mmio_read);                 376 COND_SYSCALL(s390_pci_mmio_read);
298 COND_SYSCALL(s390_pci_mmio_write);                377 COND_SYSCALL(s390_pci_mmio_write);
299 COND_SYSCALL(s390_ipc);                           378 COND_SYSCALL(s390_ipc);
300 COND_SYSCALL_COMPAT(s390_ipc);                    379 COND_SYSCALL_COMPAT(s390_ipc);
301                                                   380 
302 /* powerpc */                                     381 /* powerpc */
303 COND_SYSCALL(rtas);                               382 COND_SYSCALL(rtas);
304 COND_SYSCALL(spu_run);                            383 COND_SYSCALL(spu_run);
305 COND_SYSCALL(spu_create);                         384 COND_SYSCALL(spu_create);
306 COND_SYSCALL(subpage_prot);                       385 COND_SYSCALL(subpage_prot);
307                                                   386 
308                                                   387 
309 /*                                                388 /*
310  * Deprecated system calls which are still def    389  * Deprecated system calls which are still defined in
311  * include/uapi/asm-generic/unistd.h and wante    390  * include/uapi/asm-generic/unistd.h and wanted by >= 1 arch
312  */                                               391  */
313                                                   392 
314 /* __ARCH_WANT_SYSCALL_NO_FLAGS */                393 /* __ARCH_WANT_SYSCALL_NO_FLAGS */
315 COND_SYSCALL(epoll_create);                       394 COND_SYSCALL(epoll_create);
316 COND_SYSCALL(inotify_init);                       395 COND_SYSCALL(inotify_init);
317 COND_SYSCALL(eventfd);                            396 COND_SYSCALL(eventfd);
318 COND_SYSCALL(signalfd);                           397 COND_SYSCALL(signalfd);
319 COND_SYSCALL_COMPAT(signalfd);                    398 COND_SYSCALL_COMPAT(signalfd);
320                                                   399 
321 /* __ARCH_WANT_SYSCALL_OFF_T */                   400 /* __ARCH_WANT_SYSCALL_OFF_T */
322 COND_SYSCALL(fadvise64);                          401 COND_SYSCALL(fadvise64);
323                                                   402 
324 /* __ARCH_WANT_SYSCALL_DEPRECATED */              403 /* __ARCH_WANT_SYSCALL_DEPRECATED */
325 COND_SYSCALL(epoll_wait);                         404 COND_SYSCALL(epoll_wait);
326 COND_SYSCALL(recv);                               405 COND_SYSCALL(recv);
327 COND_SYSCALL_COMPAT(recv);                        406 COND_SYSCALL_COMPAT(recv);
328 COND_SYSCALL(send);                               407 COND_SYSCALL(send);
                                                   >> 408 COND_SYSCALL(bdflush);
329 COND_SYSCALL(uselib);                             409 COND_SYSCALL(uselib);
330                                                   410 
331 /* optional: time32 */                         << 
332 COND_SYSCALL(time32);                          << 
333 COND_SYSCALL(stime32);                         << 
334 COND_SYSCALL(utime32);                         << 
335 COND_SYSCALL(adjtimex_time32);                 << 
336 COND_SYSCALL(sched_rr_get_interval_time32);    << 
337 COND_SYSCALL(nanosleep_time32);                << 
338 COND_SYSCALL(rt_sigtimedwait_time32);          << 
339 COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);   << 
340 COND_SYSCALL(timer_settime32);                 << 
341 COND_SYSCALL(timer_gettime32);                 << 
342 COND_SYSCALL(clock_settime32);                 << 
343 COND_SYSCALL(clock_gettime32);                 << 
344 COND_SYSCALL(clock_getres_time32);             << 
345 COND_SYSCALL(clock_nanosleep_time32);          << 
346 COND_SYSCALL(utimes_time32);                   << 
347 COND_SYSCALL(futimesat_time32);                << 
348 COND_SYSCALL(pselect6_time32);                 << 
349 COND_SYSCALL_COMPAT(pselect6_time32);          << 
350 COND_SYSCALL(ppoll_time32);                    << 
351 COND_SYSCALL_COMPAT(ppoll_time32);             << 
352 COND_SYSCALL(utimensat_time32);                << 
353 COND_SYSCALL(clock_adjtime32);                 << 
354                                                   411 
355 /*                                                412 /*
356  * The syscalls below are not found in include    413  * The syscalls below are not found in include/uapi/asm-generic/unistd.h
357  */                                               414  */
358                                                   415 
359 /* obsolete: SGETMASK_SYSCALL */                  416 /* obsolete: SGETMASK_SYSCALL */
360 COND_SYSCALL(sgetmask);                           417 COND_SYSCALL(sgetmask);
361 COND_SYSCALL(ssetmask);                           418 COND_SYSCALL(ssetmask);
362                                                   419 
363 /* obsolete: SYSFS_SYSCALL */                     420 /* obsolete: SYSFS_SYSCALL */
364 COND_SYSCALL(sysfs);                              421 COND_SYSCALL(sysfs);
365                                                   422 
366 /* obsolete: __ARCH_WANT_SYS_IPC */               423 /* obsolete: __ARCH_WANT_SYS_IPC */
367 COND_SYSCALL(ipc);                                424 COND_SYSCALL(ipc);
368 COND_SYSCALL_COMPAT(ipc);                         425 COND_SYSCALL_COMPAT(ipc);
369                                                   426 
370 /* obsolete: UID16 */                             427 /* obsolete: UID16 */
371 COND_SYSCALL(chown16);                            428 COND_SYSCALL(chown16);
372 COND_SYSCALL(fchown16);                           429 COND_SYSCALL(fchown16);
373 COND_SYSCALL(getegid16);                          430 COND_SYSCALL(getegid16);
374 COND_SYSCALL(geteuid16);                          431 COND_SYSCALL(geteuid16);
375 COND_SYSCALL(getgid16);                           432 COND_SYSCALL(getgid16);
376 COND_SYSCALL(getgroups16);                        433 COND_SYSCALL(getgroups16);
377 COND_SYSCALL(getresgid16);                        434 COND_SYSCALL(getresgid16);
378 COND_SYSCALL(getresuid16);                        435 COND_SYSCALL(getresuid16);
379 COND_SYSCALL(getuid16);                           436 COND_SYSCALL(getuid16);
380 COND_SYSCALL(lchown16);                           437 COND_SYSCALL(lchown16);
381 COND_SYSCALL(setfsgid16);                         438 COND_SYSCALL(setfsgid16);
382 COND_SYSCALL(setfsuid16);                         439 COND_SYSCALL(setfsuid16);
383 COND_SYSCALL(setgid16);                           440 COND_SYSCALL(setgid16);
384 COND_SYSCALL(setgroups16);                        441 COND_SYSCALL(setgroups16);
385 COND_SYSCALL(setregid16);                         442 COND_SYSCALL(setregid16);
386 COND_SYSCALL(setresgid16);                        443 COND_SYSCALL(setresgid16);
387 COND_SYSCALL(setresuid16);                        444 COND_SYSCALL(setresuid16);
388 COND_SYSCALL(setreuid16);                         445 COND_SYSCALL(setreuid16);
389 COND_SYSCALL(setuid16);                           446 COND_SYSCALL(setuid16);
390                                                   447 
391 /* restartable sequence */                        448 /* restartable sequence */
392 COND_SYSCALL(rseq);                               449 COND_SYSCALL(rseq);
393                                                << 
394 COND_SYSCALL(uretprobe);                       << 
395                                                   450 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php