authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-20 01:57:55 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-20 01:57:55 -07:00
logb09b02de7c3ad552a62ea617081da376c84f500f
treec5cb95d5737b8c4d9ef26a27933ec35100f6caea
parentdea38766c21d59adfb5945193fc481d2c3597dbb

progress


1 files changed, 372 insertions(+), 1 deletions(-)

mod.zig+372-1
...@@ -39,524 +39,699 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {...@@ -39,524 +39,699 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
3939
40// open40// open
41// int open(const char *pathname, int flags, ... /* mode_t mode */ );41// int open(const char *pathname, int flags, ... /* mode_t mode */ );
42// asmlinkage long sys_open(const char __user *filename, int flags, umode_t mode);
4243
43// close44// close
44// int close(int fd);45// int close(int fd);
46// asmlinkage long sys_close(unsigned int fd);
4547
46// stat48// stat
47// int stat(const char *restrict pathname, struct stat *restrict statbuf);49// int stat(const char *restrict pathname, struct stat *restrict statbuf);
50// asmlinkage long sys_stat(const char __user *filename, struct __old_kernel_stat __user *statbuf);
4851
49// fstat52// fstat
50// int fstat(int fd, struct stat *statbuf);53// int fstat(int fd, struct stat *statbuf);
54// asmlinkage long sys_fstat(unsigned int fd, struct __old_kernel_stat __user *statbuf);
5155
52// lstat56// lstat
53// int lstat(const char *restrict pathname, struct stat *restrict statbuf);57// int lstat(const char *restrict pathname, struct stat *restrict statbuf);
58// asmlinkage long sys_lstat(const char __user *filename, struct __old_kernel_stat __user *statbuf);
5459
55// poll60// poll
56// int poll(struct pollfd *fds, nfds_t nfds, int timeout);61// int poll(struct pollfd *fds, nfds_t nfds, int timeout);
62// asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds, int timeout);
5763
58// lseek64// lseek
59// off_t lseek(int fd, off_t offset, int whence);65// off_t lseek(int fd, off_t offset, int whence);
66// asmlinkage long sys_lseek(unsigned int fd, off_t offset, unsigned int whence);
6067
61// mmap68// mmap
62// void *mmap(void addr[.length], size_t length, int prot, int flags, int fd, off_t offset);69// void *mmap(void addr[.length], size_t length, int prot, int flags, int fd, off_t offset);
70// asmlinkage long sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off);
6371
64// mprotect72// mprotect
65// int mprotect(void addr[.len], size_t len, int prot);73// int mprotect(void addr[.len], size_t len, int prot);
74// asmlinkage long sys_mprotect(unsigned long start, size_t len, unsigned long prot);
6675
67// munmap76// munmap
68// int munmap(void addr[.length], size_t length);77// int munmap(void addr[.length], size_t length);
78// asmlinkage long sys_munmap(unsigned long addr, size_t len);
6979
70// brk80// brk
71// int brk(void *addr);81// int brk(void *addr);
82// asmlinkage long sys_brk(unsigned long brk);
7283
73// rt_sigaction84// rt_sigaction
85// int sigaction(int signum, const struct sigaction *_Nullable restrict act, struct sigaction *_Nullable restrict oldact);
86// asmlinkage long sys_rt_sigaction(int, const struct sigaction __user *, struct sigaction __user *, size_t);
7487
75// rt_sigprocmask88// rt_sigprocmask
76// int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset);89// int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset);
90// asmlinkage long sys_rt_sigprocmask(int how, sigset_t __user *set, sigset_t __user *oset, size_t sigsetsize);
7791
78// rt_sigreturn92// rt_sigreturn
79// int sigreturn(...);93// int sigreturn(...);
94// asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
8095
81// ioctl96// ioctl
97// int ioctl(int fd, unsigned long op, ...);
98// asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
8299
83// pread64100// pread64
84// ssize_t pread(int fd, void buf[.count], size_t count, off_t offset);101// ssize_t pread(int fd, void buf[.count], size_t count, off_t offset);
102// asmlinkage long sys_pread64(unsigned int fd, char __user *buf, size_t count, loff_t pos);
85103
86// pwrite64104// pwrite64
87// ssize_t pwrite(int fd, const void buf[.count], size_t count, off_t offset);105// ssize_t pwrite(int fd, const void buf[.count], size_t count, off_t offset);
106// asmlinkage long sys_pwrite64(unsigned int fd, const char __user *buf, size_t count, loff_t pos);
88107
89// readv108// readv
90// ssize_t readv(int fd, const struct iovec *iov, int iovcnt);109// ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
110// asmlinkage long sys_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen);
91111
92// writev112// writev
93// ssize_t writev(int fd, const struct iovec *iov, int iovcnt);113// ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
114// asmlinkage long sys_writev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen);
94115
95// access116// access
96// int access(const char *pathname, int mode);117// int access(const char *pathname, int mode);
118// asmlinkage long sys_access(const char __user *filename, int mode);
97119
98// pipe120// pipe
99// int pipe(int pipefd[2]);121// int pipe(int pipefd[2]);
122// asmlinkage long sys_pipe(int __user *fildes);
100123
101// select124// select
102// int select(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, struct timeval *_Nullable restrict timeout);125// int select(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, struct timeval *_Nullable restrict timeout);
126// asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct __kernel_old_timeval __user *tvp);
103127
104// sched_yield128// sched_yield
105// int sched_yield(void);129// int sched_yield(void);
130// asmlinkage long sys_sched_yield(void);
106131
107// mremap132// mremap
108// void *mremap(void old_address[.old_size], size_t old_size, size_t new_size, int flags, ... /* void *new_address */);133// void *mremap(void old_address[.old_size], size_t old_size, size_t new_size, int flags, ... /* void *new_address */);
134// asmlinkage long sys_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr);
109135
110// msync136// msync
111// int msync(void addr[.length], size_t length, int flags);137// int msync(void addr[.length], size_t length, int flags);
138// asmlinkage long sys_msync(unsigned long start, size_t len, int flags);
112139
113// mincore140// mincore
114// int mincore(void addr[.length], size_t length, unsigned char *vec);141// int mincore(void addr[.length], size_t length, unsigned char *vec);
142// asmlinkage long sys_mincore(unsigned long start, size_t len, unsigned char __user * vec);
115143
116// madvise144// madvise
117// int madvise(void addr[.length], size_t length, int advice);145// int madvise(void addr[.length], size_t length, int advice);
146// asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior);
118147
119// shmget148// shmget
120// int shmget(key_t key, size_t size, int shmflg);149// int shmget(key_t key, size_t size, int shmflg);
150// asmlinkage long sys_shmget(key_t key, size_t size, int flag);
121151
122// shmat152// shmat
123// void *shmat(int shmid, const void *_Nullable shmaddr, int shmflg);153// void *shmat(int shmid, const void *_Nullable shmaddr, int shmflg);
154// asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
124155
125// shmctl156// shmctl
126// int shmctl(int shmid, int op, struct shmid_ds *buf);157// int shmctl(int shmid, int op, struct shmid_ds *buf);
158// asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
127159
128// dup160// dup
129// int dup(int oldfd);161// int dup(int oldfd);
162// asmlinkage long sys_dup(unsigned int fildes);
130163
131// dup2164// dup2
132// int dup2(int oldfd, int newfd);165// int dup2(int oldfd, int newfd);
166// asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
133167
134// pause168// pause
135// int pause(void);169// int pause(void);
170// asmlinkage long sys_pause(void);
136171
137// nanosleep172// nanosleep
138// int nanosleep(const struct timespec *duration, struct timespec *_Nullable rem);173// int nanosleep(const struct timespec *duration, struct timespec *_Nullable rem);
174// asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp, struct __kernel_timespec __user *rmtp);
139175
140// getitimer176// getitimer
141// int getitimer(int which, struct itimerval *curr_value);177// int getitimer(int which, struct itimerval *curr_value);
178// asmlinkage long sys_getitimer(int which, struct __kernel_old_itimerval __user *value);
142179
143// alarm180// alarm
144// unsigned int alarm(unsigned int seconds);181// unsigned int alarm(unsigned int seconds);
182// asmlinkage long sys_alarm(unsigned int seconds);
145183
146// setitimer184// setitimer
147// int setitimer(int which, const struct itimerval *restrict new_value, struct itimerval *_Nullable restrict old_value);185// int setitimer(int which, const struct itimerval *restrict new_value, struct itimerval *_Nullable restrict old_value);
186// asmlinkage long sys_setitimer(int which, struct __kernel_old_itimerval __user *value, struct __kernel_old_itimerval __user *ovalue);
148187
149// getpid188// getpid
150// pid_t getpid(void);189// pid_t getpid(void);
190// asmlinkage long sys_getpid(void);
151191
152// sendfile192// sendfile
153// ssize_t sendfile(int out_fd, int in_fd, off_t *_Nullable offset, size_t count);193// ssize_t sendfile(int out_fd, int in_fd, off_t *_Nullable offset, size_t count);
194// asmlinkage long sys_sendfile(int out_fd, int in_fd, off_t __user *offset, size_t count);
154195
155// socket196// socket
156// int socket(int domain, int type, int protocol);197// int socket(int domain, int type, int protocol);
198// asmlinkage long sys_socket(int, int, int);
157199
158// connect200// connect
159// int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);201// int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
202// asmlinkage long sys_connect(int, struct sockaddr __user *, int);
160203
161// accept204// accept
162// int accept(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen);205// int accept(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen);
206// asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *);
163207
164// sendto208// sendto
165// ssize_t sendto(int sockfd, const void buf[.len], size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen);209// ssize_t sendto(int sockfd, const void buf[.len], size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen);
210// asmlinkage long sys_sendto(int, void __user *, size_t, unsigned, struct sockaddr __user *, int);
166211
167// recvfrom212// recvfrom
168// ssize_t recvfrom(int sockfd, void buf[restrict .len], size_t len, int flags, struct sockaddr *_Nullable restrict src_addr, socklen_t *_Nullable restrict addrlen);213// ssize_t recvfrom(int sockfd, void buf[restrict .len], size_t len, int flags, struct sockaddr *_Nullable restrict src_addr, socklen_t *_Nullable restrict addrlen);
214// asmlinkage long sys_recvfrom(int, void __user *, size_t, unsigned, struct sockaddr __user *, int __user *);
169215
170// sendmsg216// sendmsg
171// ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags);217// ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags);
218// asmlinkage long sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
172219
173// recvmsg220// recvmsg
174// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags);221// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags);
222// asmlinkage long sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
175223
176// shutdown224// shutdown
177// int shutdown(int sockfd, int how);225// int shutdown(int sockfd, int how);
226// asmlinkage long sys_shutdown(int, int);
178227
179// bind228// bind
180// int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);229// int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
230// asmlinkage long sys_bind(int, struct sockaddr __user *, int);
181231
182// listen232// listen
183// int listen(int sockfd, int backlog);233// int listen(int sockfd, int backlog);
234// asmlinkage long sys_listen(int, int);
184235
185// getsockname236// getsockname
186// int getsockname(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);237// int getsockname(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);
238// asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
187239
188// getpeername240// getpeername
189// int getpeername(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);241// int getpeername(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);
242// asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
190243
191// socketpair244// socketpair
192// int socketpair(int domain, int type, int protocol, int sv[2]);245// int socketpair(int domain, int type, int protocol, int sv[2]);
246// asmlinkage long sys_socketpair(int, int, int, int __user *);
193247
194// setsockopt248// setsockopt
195// int setsockopt(int sockfd, int level, int optname, const void optval[.optlen], socklen_t optlen);249// int setsockopt(int sockfd, int level, int optname, const void optval[.optlen], socklen_t optlen);
250// asmlinkage long sys_setsockopt(int fd, int level, int optname, char __user *optval, int optlen);
196251
197// getsockopt252// getsockopt
198// int getsockopt(int sockfd, int level, int optname, void optval[restrict *.optlen], socklen_t *restrict optlen);253// int getsockopt(int sockfd, int level, int optname, void optval[restrict *.optlen], socklen_t *restrict optlen);
254// asmlinkage long sys_getsockopt(int fd, int level, int optname, char __user *optval, int __user *optlen);
199255
200// clone256// clone
201// int clone(int (*fn)(void *_Nullable), void *stack, int flags, void *_Nullable arg, ... /* pid_t *_Nullable parent_tid, void *_Nullable tls, pid_t *_Nullable child_tid */ );257// int clone(int (*fn)(void *_Nullable), void *stack, int flags, void *_Nullable arg, ... /* pid_t *_Nullable parent_tid, void *_Nullable tls, pid_t *_Nullable child_tid */ );
258// asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, int __user *, unsigned long);
202259
203// fork260// fork
204// pid_t fork(void);261// pid_t fork(void);
262// asmlinkage long sys_fork(void);
205263
206// vfork264// vfork
207// pid_t vfork(void);265// pid_t vfork(void);
266// asmlinkage long sys_vfork(void);
208267
209// execve268// execve
210// int execve(const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[]);269// int execve(const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[]);
270// asmlinkage long sys_execve(const char __user *filename, const char __user *const __user *argv, const char __user *const __user *envp);
211271
212// exit272// exit
213// [[noreturn]] void _exit(int status);273// [[noreturn]] void _exit(int status);
274// asmlinkage long sys_exit(int error_code);
214275
215// wait4276// wait4
216// pid_t wait4(pid_t pid, int *_Nullable wstatus, int options, struct rusage *_Nullable rusage);277// pid_t wait4(pid_t pid, int *_Nullable wstatus, int options, struct rusage *_Nullable rusage);
278// asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr, int options, struct rusage __user *ru);
217279
218// kill280// kill
219// int kill(pid_t pid, int sig);281// int kill(pid_t pid, int sig);
282// asmlinkage long sys_kill(pid_t pid, int sig);
220283
221// uname284// uname
222// int uname(struct utsname *buf);285// int uname(struct utsname *buf);
286// asmlinkage long sys_uname(struct old_utsname __user *);
223287
224// semget288// semget
225// int semget(key_t key, int nsems, int semflg);289// int semget(key_t key, int nsems, int semflg);
290// asmlinkage long sys_semget(key_t key, int nsems, int semflg);
226291
227// semop292// semop
228// int semop(int semid, struct sembuf *sops, size_t nsops);293// int semop(int semid, struct sembuf *sops, size_t nsops);
294// asmlinkage long sys_semop(int semid, struct sembuf __user *sops, unsigned nsops);
229295
230// semctl296// semctl
231// int semctl(int semid, int semnum, int op, ...);297// int semctl(int semid, int semnum, int op, ...);
298// asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg);
232299
233// shmdt300// shmdt
234// int shmdt(const void *shmaddr);301// int shmdt(const void *shmaddr);
302// asmlinkage long sys_shmdt(char __user *shmaddr);
235303
236// msgget304// msgget
237// int msgget(key_t key, int msgflg);305// int msgget(key_t key, int msgflg);
306// asmlinkage long sys_msgget(key_t key, int msgflg);
238307
239// msgsnd308// msgsnd
240// int msgsnd(int msqid, const void msgp[.msgsz], size_t msgsz, int msgflg);309// int msgsnd(int msqid, const void msgp[.msgsz], size_t msgsz, int msgflg);
310// asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg);
241311
242// msgrcv312// msgrcv
243// ssize_t msgrcv(int msqid, void msgp[.msgsz], size_t msgsz, long msgtyp, int msgflg);313// ssize_t msgrcv(int msqid, void msgp[.msgsz], size_t msgsz, long msgtyp, int msgflg);
314// asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz, long msgtyp, int msgflg);
244315
245// msgctl316// msgctl
246// int msgctl(int msqid, int op, struct msqid_ds *buf);317// int msgctl(int msqid, int op, struct msqid_ds *buf);
318// asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);
247319
248// fcntl320// fcntl
249// int fcntl(int fd, int op, ... /* arg */ );321// int fcntl(int fd, int op, ... /* arg */ );
322// asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg);
250323
251// flock324// flock
252// int flock(int fd, int op);325// int flock(int fd, int op);
326// asmlinkage long sys_flock(unsigned int fd, unsigned int cmd);
253327
254// fsync328// fsync
255// int fsync(int fd);329// int fsync(int fd);
330// asmlinkage long sys_fsync(unsigned int fd);
256331
257// fdatasync332// fdatasync
258// int fdatasync(int fd);333// int fdatasync(int fd);
334// asmlinkage long sys_fdatasync(unsigned int fd);
259335
260// truncate336// truncate
261// int truncate(const char *path, off_t length);337// int truncate(const char *path, off_t length);
338// asmlinkage long sys_truncate(const char __user *path, long length);
262339
263// ftruncate340// ftruncate
264// int ftruncate(int fd, off_t length);341// int ftruncate(int fd, off_t length);
342// asmlinkage long sys_ftruncate(unsigned int fd, off_t length);
265343
266// getdents344// getdents
267// ssize_t getdents64(int fd, void dirp[.count], size_t count);345// long syscall(SYS_getdents, unsigned int fd, struct linux_dirent *dirp, unsigned int count);
346// asmlinkage long sys_getdents(unsigned int fd, struct linux_dirent __user *dirent, unsigned int count);
268347
269// getcwd348// getcwd
270// char *getcwd(char buf[.size], size_t size);349// char *getcwd(char buf[.size], size_t size);
350// asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
271351
272// chdir352// chdir
273// int chdir(const char *path);353// int chdir(const char *path);
354// asmlinkage long sys_chdir(const char __user *filename);
274355
275// fchdir356// fchdir
276// int fchdir(int fd);357// int fchdir(int fd);
358// asmlinkage long sys_fchdir(unsigned int fd);
277359
278// rename360// rename
279// int rename(const char *oldpath, const char *newpath);361// int rename(const char *oldpath, const char *newpath);
362// asmlinkage long sys_rename(const char __user *oldname, const char __user *newname);
280363
281// mkdir364// mkdir
282// int mkdir(const char *pathname, mode_t mode);365// int mkdir(const char *pathname, mode_t mode);
366// asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode);
283367
284// rmdir368// rmdir
285// int rmdir(const char *pathname);369// int rmdir(const char *pathname);
370// asmlinkage long sys_rmdir(const char __user *pathname);
286371
287// creat372// creat
288// int creat(const char *pathname, mode_t mode);373// int creat(const char *pathname, mode_t mode);
374// asmlinkage long sys_creat(const char __user *pathname, umode_t mode);
289375
290// link376// link
291// int link(const char *oldpath, const char *newpath);377// int link(const char *oldpath, const char *newpath);
378// asmlinkage long sys_link(const char __user *oldname, const char __user *newname);
292379
293// unlink380// unlink
294// int unlink(const char *pathname);381// int unlink(const char *pathname);
382// asmlinkage long sys_unlink(const char __user *pathname);
295383
296// symlink384// symlink
297// int symlink(const char *target, const char *linkpath);385// int symlink(const char *target, const char *linkpath);
386// asmlinkage long sys_symlink(const char __user *old, const char __user *new);
298387
299// readlink388// readlink
300// ssize_t readlink(const char *restrict pathname, char *restrict buf, size_t bufsiz);389// ssize_t readlink(const char *restrict pathname, char *restrict buf, size_t bufsiz);
390// asmlinkage long sys_readlink(const char __user *path, char __user *buf, int bufsiz);
301391
302// chmod392// chmod
303// int chmod(const char *pathname, mode_t mode);393// int chmod(const char *pathname, mode_t mode);
394// asmlinkage long sys_chmod(const char __user *filename, umode_t mode);
304395
305// fchmod396// fchmod
306// int fchmod(int fd, mode_t mode);397// int fchmod(int fd, mode_t mode);
398// asmlinkage long sys_fchmod(unsigned int fd, umode_t mode);
307399
308// chown400// chown
309// int chown(const char *pathname, uid_t owner, gid_t group);401// int chown(const char *pathname, uid_t owner, gid_t group);
402// asmlinkage long sys_chown(const char __user *filename, uid_t user, gid_t group);
310403
311// fchown404// fchown
312// int fchown(int fd, uid_t owner, gid_t group);405// int fchown(int fd, uid_t owner, gid_t group);
406// asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group);
313407
314// lchown408// lchown
315// int lchown(const char *pathname, uid_t owner, gid_t group);409// int lchown(const char *pathname, uid_t owner, gid_t group);
410// asmlinkage long sys_lchown(const char __user *filename, uid_t user, gid_t group);
316411
317// umask412// umask
318// mode_t umask(mode_t mask);413// mode_t umask(mode_t mask);
414// asmlinkage long sys_umask(int mask);
319415
320// gettimeofday416// gettimeofday
321// int gettimeofday(struct timeval *restrict tv, struct timezone *_Nullable restrict tz);417// int gettimeofday(struct timeval *restrict tv, struct timezone *_Nullable restrict tz);
418// asmlinkage long sys_gettimeofday(struct __kernel_old_timeval __user *tv, struct timezone __user *tz);
322419
323// getrlimit420// getrlimit
324// int getrlimit(int resource, struct rlimit *rlim);421// int getrlimit(int resource, struct rlimit *rlim);
422// asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit __user *rlim);
325423
326// getrusage424// getrusage
327// int getrusage(int who, struct rusage *usage);425// int getrusage(int who, struct rusage *usage);
426// asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
328427
329// sysinfo428// sysinfo
330// int sysinfo(struct sysinfo *info);429// int sysinfo(struct sysinfo *info);
430// asmlinkage long sys_sysinfo(struct sysinfo __user *info);
331431
332// times432// times
333// clock_t times(struct tms *buf);433// clock_t times(struct tms *buf);
434// asmlinkage long sys_times(struct tms __user *tbuf);
334435
335// ptrace436// ptrace
336// long ptrace(enum __ptrace_request op, pid_t pid, void *addr, void *data);437// long ptrace(enum __ptrace_request op, pid_t pid, void *addr, void *data);
438// asmlinkage long sys_ptrace(long request, long pid, unsigned long addr, unsigned long data);
337439
338// getuid440// getuid
339// uid_t getuid(void);441// uid_t getuid(void);
442// asmlinkage long sys_getuid(void);
340443
341// syslog444// syslog
342// int syscall(SYS_syslog, int type, char *bufp, int len);445// int syscall(SYS_syslog, int type, char *bufp, int len);
446// asmlinkage long sys_syslog(int type, char __user *buf, int len);
343447
344// getgid448// getgid
345// gid_t getgid(void);449// gid_t getgid(void);
450// asmlinkage long sys_getgid(void);
346451
347// setuid452// setuid
348// int setuid(uid_t uid);453// int setuid(uid_t uid);
454// asmlinkage long sys_setuid(uid_t uid);
349455
350// setgid456// setgid
351// int setgid(gid_t gid);457// int setgid(gid_t gid);
458// asmlinkage long sys_setgid(gid_t gid);
352459
353// geteuid460// geteuid
354// uid_t geteuid(void);461// uid_t geteuid(void);
462// asmlinkage long sys_geteuid(void);
355463
356// getegid464// getegid
357// gid_t getegid(void);465// gid_t getegid(void);
466// asmlinkage long sys_getegid(void);
358467
359// setpgid468// setpgid
360// int setpgid(pid_t pid, pid_t pgid);469// int setpgid(pid_t pid, pid_t pgid);
470// asmlinkage long sys_setpgid(pid_t pid, pid_t pgid);
361471
362// getppid472// getppid
363// pid_t getppid(void);473// pid_t getppid(void);
474// asmlinkage long sys_getppid(void);
364475
365// getpgrp476// getpgrp
366// pid_t getpgrp(void);477// pid_t getpgrp(void);
478// asmlinkage long sys_getpgrp(void);
367479
368// setsid480// setsid
369// pid_t setsid(void);481// pid_t setsid(void);
482// asmlinkage long sys_setsid(void);
370483
371// setreuid484// setreuid
372// int setreuid(uid_t ruid, uid_t euid);485// int setreuid(uid_t ruid, uid_t euid);
486// asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
373487
374// setregid488// setregid
375// int setregid(gid_t rgid, gid_t egid);489// int setregid(gid_t rgid, gid_t egid);
490// asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
376491
377// getgroups492// getgroups
378// int getgroups(int size, gid_t list[]);493// int getgroups(int size, gid_t list[]);
494// asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
379495
380// setgroups496// setgroups
381// int setgroups(size_t size, const gid_t *_Nullable list);497// int setgroups(size_t size, const gid_t *_Nullable list);
498// asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
382499
383// setresuid500// setresuid
384// int setresuid(uid_t ruid, uid_t euid, uid_t suid);501// int setresuid(uid_t ruid, uid_t euid, uid_t suid);
502// asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
385503
386// getresuid504// getresuid
387// int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);505// int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
506// asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid);
388507
389// setresgid508// setresgid
390// int setresgid(gid_t rgid, gid_t egid, gid_t sgid);509// int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
510// asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
391511
392// getresgid512// getresgid
393// int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);513// int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
514// asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid);
394515
395// getpgid516// getpgid
396// pid_t getpgid(pid_t pid);517// pid_t getpgid(pid_t pid);
518// asmlinkage long sys_getpgid(pid_t pid);
397519
398// setfsuid520// setfsuid
399// [[deprecated]] int setfsuid(uid_t fsuid);521// [[deprecated]] int setfsuid(uid_t fsuid);
522// asmlinkage long sys_setfsuid(uid_t uid);
400523
401// setfsgid524// setfsgid
402// [[deprecated]] int setfsgid(gid_t fsgid);525// [[deprecated]] int setfsgid(gid_t fsgid);
526// asmlinkage long sys_setfsgid(gid_t gid);
403527
404// getsid528// getsid
405// pid_t getsid(pid_t pid);529// pid_t getsid(pid_t pid);
530// asmlinkage long sys_getsid(pid_t pid);
406531
407// capget532// capget
408// int syscall(SYS_capget, cap_user_header_t hdrp, cap_user_data_t datap);533// int syscall(SYS_capget, cap_user_header_t hdrp, cap_user_data_t datap);
534// asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr);
409535
410// capset536// capset
411// int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap);537// int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap);
538// asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data);
412539
413// rt_sigpending540// rt_sigpending
414// int sigpending(sigset_t *set);541// int sigpending(sigset_t *set);
542// asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize);
415543
416// rt_sigtimedwait544// rt_sigtimedwait
417// int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout);545// int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout);
546// asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese, siginfo_t __user *uinfo, const struct __kernel_timespec __user *uts, size_t sigsetsize);
418547
419// rt_sigqueueinfo548// rt_sigqueueinfo
420// int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info);549// int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info);
550// asmlinkage long sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo);
421551
422// rt_sigsuspend552// rt_sigsuspend
423// int sigsuspend(const sigset_t *mask);553// int sigsuspend(const sigset_t *mask);
554// asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
424555
425// sigaltstack556// sigaltstack
426// int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss);557// int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss);
558// asmlinkage long sys_sigaltstack(const struct sigaltstack __user *uss, struct sigaltstack __user *uoss);
427559
428// utime560// utime
429// int utime(const char *filename, const struct utimbuf *_Nullable times);561// int utime(const char *filename, const struct utimbuf *_Nullable times);
562// asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times);
430563
431// mknod564// mknod
432// int mknod(const char *pathname, mode_t mode, dev_t dev);565// int mknod(const char *pathname, mode_t mode, dev_t dev);
566// asmlinkage long sys_mknod(const char __user *filename, umode_t mode, unsigned dev);
433567
434// uselib568// uselib
435// [[deprecated]] int uselib(const char *library);569// [[deprecated]] int uselib(const char *library);
570// asmlinkage long sys_uselib(const char __user *library);
436571
437// personality572// personality
438// int personality(unsigned long persona);573// int personality(unsigned long persona);
574// asmlinkage long sys_personality(unsigned int personality);
439575
440// ustat576// ustat
441// [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf);577// [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf);
578// asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);
442579
443// statfs580// statfs
444// int statfs(const char *path, struct statfs *buf);581// int statfs(const char *path, struct statfs *buf);
582// asmlinkage long sys_statfs(const char __user * path, struct statfs __user *buf);
445583
446// fstatfs584// fstatfs
447// int fstatfs(int fd, struct statfs *buf);585// int fstatfs(int fd, struct statfs *buf);
586// asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf);
448587
449// sysfs588// sysfs
589//
590// asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2);
450591
451// getpriority592// getpriority
452// int getpriority(int which, id_t who);593// int getpriority(int which, id_t who);
594// asmlinkage long sys_getpriority(int which, int who);
453595
454// setpriority596// setpriority
455// int setpriority(int which, id_t who, int prio);597// int setpriority(int which, id_t who, int prio);
598// asmlinkage long sys_setpriority(int which, int who, int niceval);
456599
457// sched_setparam600// sched_setparam
458// int sched_setparam(pid_t pid, const struct sched_param *param);601// int sched_setparam(pid_t pid, const struct sched_param *param);
602// asmlinkage long sys_sched_setparam(pid_t pid, struct sched_param __user *param);
459603
460// sched_getparam604// sched_getparam
461// int sched_getparam(pid_t pid, struct sched_param *param);605// int sched_getparam(pid_t pid, struct sched_param *param);
606// asmlinkage long sys_sched_getparam(pid_t pid, struct sched_param __user *param);
462607
463// sched_setscheduler608// sched_setscheduler
464// int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param);609// int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param);
610// asmlinkage long sys_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param);
465611
466// sched_getscheduler612// sched_getscheduler
467// int sched_getscheduler(pid_t pid);613// int sched_getscheduler(pid_t pid);
614// asmlinkage long sys_sched_getscheduler(pid_t pid);
468615
469// sched_get_priority_max616// sched_get_priority_max
470// int sched_get_priority_max(int policy);617// int sched_get_priority_max(int policy);
618// asmlinkage long sys_sched_get_priority_max(int policy);
471619
472// sched_get_priority_min620// sched_get_priority_min
473// int sched_get_priority_min(int policy);621// int sched_get_priority_min(int policy);
622// asmlinkage long sys_sched_get_priority_min(int policy);
474623
475// sched_rr_get_interval624// sched_rr_get_interval
476// int sched_rr_get_interval(pid_t pid, struct timespec *tp);625// int sched_rr_get_interval(pid_t pid, struct timespec *tp);
626// asmlinkage long sys_sched_rr_get_interval(pid_t pid, struct __kernel_timespec __user *interval);
477627
478// mlock628// mlock
479// int mlock(const void addr[.len], size_t len);629// int mlock(const void addr[.len], size_t len);
630// asmlinkage long sys_mlock(unsigned long start, size_t len);
480631
481// munlock632// munlock
482// int munlock(const void addr[.len], size_t len);633// int munlock(const void addr[.len], size_t len);
634// asmlinkage long sys_munlock(unsigned long start, size_t len);
483635
484// mlockall636// mlockall
485// int mlockall(int flags);637// int mlockall(int flags);
638// asmlinkage long sys_mlockall(int flags);
486639
487// munlockall640// munlockall
488// int munlockall(void);641// int munlockall(void);
642// asmlinkage long sys_munlockall(void);
489643
490// vhangup644// vhangup
491// int vhangup(void);645// int vhangup(void);
646// asmlinkage long sys_vhangup(void);
492647
493// modify_ldt648// modify_ldt
494// int syscall(SYS_modify_ldt, int func, void ptr[.bytecount], unsigned long bytecount);649// int syscall(SYS_modify_ldt, int func, void ptr[.bytecount], unsigned long bytecount);
495650
496// pivot_root651// pivot_root
497// int syscall(SYS_pivot_root, const char *new_root, const char *put_old);652// int syscall(SYS_pivot_root, const char *new_root, const char *put_old);
653// asmlinkage long sys_pivot_root(const char __user *new_root, const char __user *put_old);
498654
499// _sysctl655// _sysctl
500// [[deprecated]] int _sysctl(struct __sysctl_args *args);656// [[deprecated]] int _sysctl(struct __sysctl_args *args);
657// asmlinkage long sys_ni_syscall(void);
501658
502// prctl659// prctl
503// int prctl(int op, ... /* unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5 */ );660// int prctl(int op, ... /* unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5 */ );
661// asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
504662
505// arch_prctl663// arch_prctl
506664
507// adjtimex665// adjtimex
508// int adjtimex(struct timex *buf);666// int adjtimex(struct timex *buf);
667// asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p);
509668
510// setrlimit669// setrlimit
511// int setrlimit(int resource, const struct rlimit *rlim);670// int setrlimit(int resource, const struct rlimit *rlim);
671// asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit __user *rlim);
512672
513// chroot673// chroot
514// int chroot(const char *path);674// int chroot(const char *path);
675// asmlinkage long sys_chroot(const char __user *filename);
515676
516// sync677// sync
517// void sync(void);678// void sync(void);
679// asmlinkage long sys_sync(void);
518680
519// acct681// acct
520// int acct(const char *_Nullable filename);682// int acct(const char *_Nullable filename);
683// asmlinkage long sys_acct(const char __user *name);
521684
522// settimeofday685// settimeofday
523// int settimeofday(const struct timeval *tv, const struct timezone *_Nullable tz);686// int settimeofday(const struct timeval *tv, const struct timezone *_Nullable tz);
687// asmlinkage long sys_settimeofday(struct __kernel_old_timeval __user *tv, struct timezone __user *tz);
524688
525// mount689// mount
526// int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *_Nullable data);690// int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *_Nullable data);
691// asmlinkage long sys_mount(char __user *dev_name, char __user *dir_name, char __user *type, unsigned long flags, void __user *data);
527692
528// umount2693// umount2
529// int umount2(const char *target, int flags);694// int umount2(const char *target, int flags);
695// asmlinkage long sys_umount(char __user *name, int flags);
530696
531// swapon697// swapon
532// int swapon(const char *path, int swapflags);698// int swapon(const char *path, int swapflags);
699// asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags);
533700
534// swapoff701// swapoff
535// int swapoff(const char *path);702// int swapoff(const char *path);
703// asmlinkage long sys_swapoff(const char __user *specialfile);
536704
537// reboot705// reboot
538// int reboot(int op);706// int reboot(int op);
707// asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user *arg);
539708
540// sethostname709// sethostname
541// int sethostname(const char *name, size_t len);710// int sethostname(const char *name, size_t len);
711// asmlinkage long sys_sethostname(char __user *name, int len);
542712
543// setdomainname713// setdomainname
544// int setdomainname(const char *name, size_t len);714// int setdomainname(const char *name, size_t len);
715// asmlinkage long sys_setdomainname(char __user *name, int len);
545716
546// iopl717// iopl
547// [[deprecated]] int iopl(int level);718// [[deprecated]] int iopl(int level);
719// asmlinkage long sys_ni_syscall(void);
548720
549// ioperm721// ioperm
550// int ioperm(unsigned long from, unsigned long num, int turn_on);722// int ioperm(unsigned long from, unsigned long num, int turn_on);
723// asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int on);
551724
552// create_module725// create_module
553// [[deprecated]] caddr_t create_module(const char *name, size_t size);726// [[deprecated]] caddr_t create_module(const char *name, size_t size);
554727
555// init_module728// init_module
556// int syscall(SYS_init_module, void module_image[.len], unsigned long len, const char *param_values);729// int syscall(SYS_init_module, void module_image[.len], unsigned long len, const char *param_values);
730// asmlinkage long sys_init_module(void __user *umod, unsigned long len, const char __user *uargs);
557731
558// delete_module732// delete_module
559// int syscall(SYS_delete_module, const char *name, unsigned int flags);733// int syscall(SYS_delete_module, const char *name, unsigned int flags);
734// asmlinkage long sys_delete_module(const char __user *name_user, unsigned int flags);
560735
561// get_kernel_syms736// get_kernel_syms
562// [[deprecated]] int get_kernel_syms(struct kernel_sym *table);737// [[deprecated]] int get_kernel_syms(struct kernel_sym *table);
...@@ -566,83 +741,108 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {...@@ -566,83 +741,108 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
566741
567// quotactl742// quotactl
568// int quotactl(int op, const char *_Nullable special, int id, caddr_t addr);743// int quotactl(int op, const char *_Nullable special, int id, caddr_t addr);
744// asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr);
569745
570// nfsservctl746// nfsservctl
571// long nfsservctl(int cmd, struct nfsctl_arg *argp, union nfsctl_res *resp);747// long nfsservctl(int cmd, struct nfsctl_arg *argp, union nfsctl_res *resp);
572748
573// gettid749// gettid
574// pid_t gettid(void);750// pid_t gettid(void);
751// asmlinkage long sys_gettid(void);
575752
576// readahead753// readahead
577// ssize_t readahead(int fd, off_t offset, size_t count);754// ssize_t readahead(int fd, off_t offset, size_t count);
755// asmlinkage long sys_readahead(int fd, loff_t offset, size_t count);
578756
579// setxattr757// setxattr
580// int setxattr(const char *path, const char *name, const void value[.size], size_t size, int flags);758// int setxattr(const char *path, const char *name, const void value[.size], size_t size, int flags);
759// asmlinkage long sys_setxattr(const char __user *path, const char __user *name, const void __user *value, size_t size, int flags);
581760
582// lsetxattr761// lsetxattr
583// int lsetxattr(const char *path, const char *name, const void value[.size], size_t size, int flags);762// int lsetxattr(const char *path, const char *name, const void value[.size], size_t size, int flags);
763// asmlinkage long sys_lsetxattr(const char __user *path, const char __user *name, const void __user *value, size_t size, int flags);
584764
585// fsetxattr765// fsetxattr
586// int fsetxattr(int fd, const char *name, const void value[.size], size_t size, int flags);766// int fsetxattr(int fd, const char *name, const void value[.size], size_t size, int flags);
767// asmlinkage long sys_fsetxattr(int fd, const char __user *name, const void __user *value, size_t size, int flags);
587768
588// getxattr769// getxattr
589// ssize_t getxattr(const char *path, const char *name, void value[.size], size_t size);770// ssize_t getxattr(const char *path, const char *name, void value[.size], size_t size);
771// asmlinkage long sys_getxattr(const char __user *path, const char __user *name, void __user *value, size_t size);
590772
591// lgetxattr773// lgetxattr
592// ssize_t lgetxattr(const char *path, const char *name, void value[.size], size_t size);774// ssize_t lgetxattr(const char *path, const char *name, void value[.size], size_t size);
775// asmlinkage long sys_lgetxattr(const char __user *path, const char __user *name, void __user *value, size_t size);
593776
594// fgetxattr777// fgetxattr
595// ssize_t fgetxattr(int fd, const char *name, void value[.size], size_t size);778// ssize_t fgetxattr(int fd, const char *name, void value[.size], size_t size);
779// asmlinkage long sys_fgetxattr(int fd, const char __user *name, void __user *value, size_t size);
596780
597// listxattr781// listxattr
598// ssize_t listxattr(const char *path, char *_Nullable list, size_t size);782// ssize_t listxattr(const char *path, char *_Nullable list, size_t size);
783// asmlinkage long sys_listxattr(const char __user *path, char __user *list, size_t size);
599784
600// llistxattr785// llistxattr
601// ssize_t llistxattr(const char *path, char *_Nullable list, size_t size);786// ssize_t llistxattr(const char *path, char *_Nullable list, size_t size);
787// asmlinkage long sys_llistxattr(const char __user *path, char __user *list, size_t size);
602788
603// flistxattr789// flistxattr
604// ssize_t flistxattr(int fd, char *_Nullable list, size_t size);790// ssize_t flistxattr(int fd, char *_Nullable list, size_t size);
791// asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size);
605792
606// removexattr793// removexattr
607// int removexattr(const char *path, const char *name);794// int removexattr(const char *path, const char *name);
795// asmlinkage long sys_removexattr(const char __user *path, const char __user *name);
608796
609// lremovexattr797// lremovexattr
610// int lremovexattr(const char *path, const char *name);798// int lremovexattr(const char *path, const char *name);
799// asmlinkage long sys_lremovexattr(const char __user *path, const char __user *name);
611800
612// fremovexattr801// fremovexattr
613// int fremovexattr(int fd, const char *name);802// int fremovexattr(int fd, const char *name);
803// asmlinkage long sys_fremovexattr(int fd, const char __user *name);
614804
615// tkill805// tkill
616// [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig);806// [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig);
807// asmlinkage long sys_tkill(pid_t pid, int sig);
617808
618// time809// time
619// time_t time(time_t *_Nullable tloc);810// time_t time(time_t *_Nullable tloc);
811// asmlinkage long sys_time(__kernel_old_time_t __user *tloc);
620812
621// futex813// futex
622// long syscall(SYS_futex, uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, /* or: uint32_t val2 */ uint32_t *uaddr2, uint32_t val3);814// long syscall(SYS_futex, uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, /* or: uint32_t val2 */ uint32_t *uaddr2, uint32_t val3);
815// asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val, const struct __kernel_timespec __user *utime, u32 __user *uaddr2, u32 val3);
623816
624// sched_setaffinity817// sched_setaffinity
625// int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *mask);818// int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *mask);
819// asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr);
626820
627// sched_getaffinity821// sched_getaffinity
628// int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask);822// int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask);
823// asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr);
629824
630// set_thread_area825// set_thread_area
631826
632// io_setup827// io_setup
633// long io_setup(unsigned int nr_events, aio_context_t *ctx_idp);828// long io_setup(unsigned int nr_events, aio_context_t *ctx_idp);
829// asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t __user *ctx);
634830
635// io_destroy831// io_destroy
636// int syscall(SYS_io_destroy, aio_context_t ctx_id);832// int syscall(SYS_io_destroy, aio_context_t ctx_id);
833// asmlinkage long sys_io_destroy(aio_context_t ctx);
637834
638// io_getevents835// io_getevents
639// int syscall(SYS_io_getevents, aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout);836// int syscall(SYS_io_getevents, aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout);
837// asmlinkage long sys_io_getevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event __user *events, struct __kernel_timespec __user *timeout);
640838
641// io_submit839// io_submit
642// int io_submit(aio_context_t ctx_id, long nr, struct iocb **iocbpp);840// int io_submit(aio_context_t ctx_id, long nr, struct iocb **iocbpp);
841// asmlinkage long sys_io_submit(aio_context_t, long, struct iocb __user * __user *);
643842
644// io_cancel843// io_cancel
645// int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb, struct io_event *result);844// int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb, struct io_event *result);
845// asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, struct io_event __user *result);
646846
647// get_thread_area847// get_thread_area
648848
...@@ -651,6 +851,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {...@@ -651,6 +851,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
651851
652// epoll_create852// epoll_create
653// int epoll_create(int size);853// int epoll_create(int size);
854// asmlinkage long sys_epoll_create(int size);
654855
655// epoll_ctl_old856// epoll_ctl_old
656// int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event);857// int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event);
...@@ -660,428 +861,598 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {...@@ -660,428 +861,598 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
660861
661// remap_file_pages862// remap_file_pages
662// [[deprecated]] int remap_file_pages(void addr[.size], size_t size, int prot, size_t pgoff, int flags);863// [[deprecated]] int remap_file_pages(void addr[.size], size_t size, int prot, size_t pgoff, int flags);
864// asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags);
663865
664// getdents64866// getdents64
665// ssize_t getdents64(int fd, void dirp[.count], size_t count);867// ssize_t getdents64(int fd, void dirp[.count], size_t count);
868// asmlinkage long sys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, unsigned int count);
666869
667// set_tid_address870// set_tid_address
668// pid_t syscall(SYS_set_tid_address, int *tidptr);871// pid_t syscall(SYS_set_tid_address, int *tidptr);
872// asmlinkage long sys_set_tid_address(int __user *tidptr);
669873
670// semtimedop874// semtimedop
671// int semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *_Nullable timeout);875// int semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *_Nullable timeout);
876// asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops, unsigned nsops, const struct __kernel_timespec __user *timeout);
672877
673// fadvise64878// fadvise64
879// int posix_fadvise(int fd, off_t offset, off_t size, int advice);
880// asmlinkage long sys_fadvise64(int fd, loff_t offset, size_t len, int advice);
674881
675// timer_create882// timer_create
676// int timer_create(clockid_t clockid, struct sigevent *_Nullable restrict sevp, timer_t *restrict timerid);883// int timer_create(clockid_t clockid, struct sigevent *_Nullable restrict sevp, timer_t *restrict timerid);
884// asmlinkage long sys_timer_create(clockid_t which_clock, struct sigevent __user *timer_event_spec, timer_t __user * created_timer_id);
677885
678// timer_settime886// timer_settime
679// int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict new_value, struct itimerspec *_Nullable restrict old_value);887// int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict new_value, struct itimerspec *_Nullable restrict old_value);
888// asmlinkage long sys_timer_settime(timer_t timer_id, int flags, const struct __kernel_itimerspec __user *new_setting, struct __kernel_itimerspec __user *old_setting);
680889
681// timer_gettime890// timer_gettime
682// int timer_gettime(timer_t timerid, struct itimerspec *curr_value);891// int timer_gettime(timer_t timerid, struct itimerspec *curr_value);
892// asmlinkage long sys_timer_gettime(timer_t timer_id, struct __kernel_itimerspec __user *setting);
683893
684// timer_getoverrun894// timer_getoverrun
685// int timer_getoverrun(timer_t timerid);895// int timer_getoverrun(timer_t timerid);
896// asmlinkage long sys_timer_getoverrun(timer_t timer_id);
686897
687// timer_delete898// timer_delete
688// int timer_delete(timer_t timerid);899// int timer_delete(timer_t timerid);
900// asmlinkage long sys_timer_delete(timer_t timer_id);
689901
690// clock_settime902// clock_settime
691// int clock_settime(clockid_t clockid, const struct timespec *tp);903// int clock_settime(clockid_t clockid, const struct timespec *tp);
904// asmlinkage long sys_clock_settime(clockid_t which_clock, const struct __kernel_timespec __user *tp);
692905
693// clock_gettime906// clock_gettime
694// int clock_gettime(clockid_t clockid, struct timespec *tp);907// int clock_gettime(clockid_t clockid, struct timespec *tp);
908// asmlinkage long sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec __user *tp);
695909
696// clock_getres910// clock_getres
697// int clock_getres(clockid_t clockid, struct timespec *_Nullable res);911// int clock_getres(clockid_t clockid, struct timespec *_Nullable res);
912// asmlinkage long sys_clock_getres(clockid_t which_clock, struct __kernel_timespec __user *tp);
698913
699// clock_nanosleep914// clock_nanosleep
700// int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, struct timespec *_Nullable remain);915// int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, struct timespec *_Nullable remain);
916// asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, const struct __kernel_timespec __user *rqtp, struct __kernel_timespec __user *rmtp);
701917
702// exit_group918// exit_group
703// [[noreturn]] void syscall(SYS_exit_group, int status);919// [[noreturn]] void syscall(SYS_exit_group, int status);
920// asmlinkage long sys_exit_group(int error_code);
704921
705// epoll_wait922// epoll_wait
706// int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);923// int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
924// asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events, int maxevents, int timeout);
707925
708// epoll_ctl926// epoll_ctl
709// int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event);927// int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event);
928// asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, struct epoll_event __user *event);
710929
711// tgkill930// tgkill
712// int tgkill(pid_t tgid, pid_t tid, int sig);931// int tgkill(pid_t tgid, pid_t tid, int sig);
932// asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig);
713933
714// utimes934// utimes
715// int utimes(const char *filename, const struct timeval times[_Nullable 2]);935// int utimes(const char *filename, const struct timeval times[_Nullable 2]);
936// asmlinkage long sys_utimes(char __user *filename, struct __kernel_old_timeval __user *utimes);
716937
717// mbind938// mbind
718// long mbind(void addr[.len], unsigned long len, int mode, const unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, unsigned int flags);939// long mbind(void addr[.len], unsigned long len, int mode, const unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, unsigned int flags);
940// asmlinkage long sys_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned flags);
719941
720// set_mempolicy942// set_mempolicy
721// long set_mempolicy(int mode, const unsigned long *nodemask, unsigned long maxnode);943// long set_mempolicy(int mode, const unsigned long *nodemask, unsigned long maxnode);
944// asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode);
722945
723// get_mempolicy946// get_mempolicy
724// long get_mempolicy(int *mode, unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, void *addr, unsigned long flags);947// long get_mempolicy(int *mode, unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, void *addr, unsigned long flags);
948// asmlinkage long sys_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags);
725949
726// mq_open950// mq_open
727// mqd_t mq_open(const char *name, int oflag, mode_t mode, struct mq_attr *attr);951// mqd_t mq_open(const char *name, int oflag, mode_t mode, struct mq_attr *attr);
952// asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr);
728953
729// mq_unlink954// mq_unlink
730// int mq_unlink(const char *name);955// int mq_unlink(const char *name);
956// asmlinkage long sys_mq_unlink(const char __user *name);
731957
732// mq_timedsend958// mq_timedsend
733// int mq_timedsend(mqd_t mqdes, const char msg_ptr[.msg_len], size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout);959// int mq_timedsend(mqd_t mqdes, const char msg_ptr[.msg_len], size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout);
960// asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct __kernel_timespec __user *abs_timeout);
734961
735// mq_timedreceive962// mq_timedreceive
736// ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr[.msg_len], size_t msg_len, unsigned int *restrict msg_prio, const struct timespec *restrict abs_timeout);963// ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr[.msg_len], size_t msg_len, unsigned int *restrict msg_prio, const struct timespec *restrict abs_timeout);
964// asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct __kernel_timespec __user *abs_timeout);
737965
738// mq_notify966// mq_notify
739// int mq_notify(mqd_t mqdes, const struct sigevent *sevp);967// int mq_notify(mqd_t mqdes, const struct sigevent *sevp);
968// asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification);
740969
741// mq_getsetattr970// mq_getsetattr
742// int syscall(SYS_mq_getsetattr, mqd_t mqdes, const struct mq_attr *newattr, struct mq_attr *oldattr);971// int syscall(SYS_mq_getsetattr, mqd_t mqdes, const struct mq_attr *newattr, struct mq_attr *oldattr);
972// asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat);
743973
744// kexec_load974// kexec_load
745// long syscall(SYS_kexec_load, unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags);975// long syscall(SYS_kexec_load, unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags);
976// asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags);
746977
747// waitid978// waitid
748// int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);979// int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);
980// asmlinkage long sys_waitid(int which, pid_t pid, struct siginfo __user *infop, int options, struct rusage __user *ru);
749981
750// add_key982// add_key
751// key_serial_t add_key(const char *type, const char *description, const void payload[.plen], size_t plen, key_serial_t keyring);983// key_serial_t add_key(const char *type, const char *description, const void payload[.plen], size_t plen, key_serial_t keyring);
984// asmlinkage long sys_add_key(const char __user *_type, const char __user *_description, const void __user *_payload, size_t plen, key_serial_t destringid);
752985
753// request_key986// request_key
754// key_serial_t request_key(const char *type, const char *description, const char *_Nullable callout_info, key_serial_t dest_keyring);987// key_serial_t request_key(const char *type, const char *description, const char *_Nullable callout_info, key_serial_t dest_keyring);
988// asmlinkage long sys_request_key(const char __user *_type, const char __user *_description, const char __user *_callout_info, key_serial_t destringid);
755989
756// keyctl990// keyctl
757// long syscall(SYS_keyctl, int operation, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);991// long syscall(SYS_keyctl, int operation, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
992// asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
758993
759// ioprio_set994// ioprio_set
760// int syscall(SYS_ioprio_set, int which, int who, int ioprio);995// int syscall(SYS_ioprio_set, int which, int who, int ioprio);
996// asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
761997
762// ioprio_get998// ioprio_get
763// int syscall(SYS_ioprio_set, int which, int who, int ioprio);999// int syscall(SYS_ioprio_set, int which, int who, int ioprio);
1000// asmlinkage long sys_ioprio_get(int which, int who);
7641001
765// inotify_init1002// inotify_init
766// int inotify_init(void);1003// int inotify_init(void);
1004// asmlinkage long sys_inotify_init(void);
7671005
768// inotify_add_watch1006// inotify_add_watch
769// int inotify_add_watch(int fd, const char *pathname, uint32_t mask);1007// int inotify_add_watch(int fd, const char *pathname, uint32_t mask);
1008// asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask);
7701009
771// inotify_rm_watch1010// inotify_rm_watch
772// int inotify_rm_watch(int fd, int wd);1011// int inotify_rm_watch(int fd, int wd);
1012// asmlinkage long sys_inotify_rm_watch(int fd, __s32 wd);
7731013
774// migrate_pages1014// migrate_pages
775// long migrate_pages(int pid, unsigned long maxnode, const unsigned long *old_nodes, const unsigned long *new_nodes);1015// long migrate_pages(int pid, unsigned long maxnode, const unsigned long *old_nodes, const unsigned long *new_nodes);
1016// asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, const unsigned long __user *from, const unsigned long __user *to);
7761017
777// openat1018// openat
778// int openat(int dirfd, const char *pathname, int flags, ... /* mode_t mode */ );1019// int openat(int dirfd, const char *pathname, int flags, ... /* mode_t mode */ );
1020// asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, umode_t mode);
7791021
780// mkdirat1022// mkdirat
781// int mkdirat(int dirfd, const char *pathname, mode_t mode);1023// int mkdirat(int dirfd, const char *pathname, mode_t mode);
1024// asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, umode_t mode);
7821025
783// mknodat1026// mknodat
784// int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev);1027// int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev);
1028// asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode, unsigned dev);
7851029
786// fchownat1030// fchownat
787// int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags);1031// int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags);
1032// asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag);
7881033
789// futimesat1034// futimesat
790// [[deprecated]] int futimesat(int dirfd, const char *pathname, const struct timeval times[2]);1035// [[deprecated]] int futimesat(int dirfd, const char *pathname, const struct timeval times[2]);
1036// asmlinkage long sys_futimesat(int dfd, const char __user *filename, struct __kernel_old_timeval __user *utimes);
7911037
792// fstatat641038// fstatat64
793// int fstatat(int dirfd, const char *restrict pathname, struct stat *restrict statbuf, int flags);1039// int fstatat(int dirfd, const char *restrict pathname, struct stat *restrict statbuf, int flags);
1040// asmlinkage long sys_fstatat64(int dfd, const char __user *filename, struct stat64 __user *statbuf, int flag);
7941041
795// unlinkat1042// unlinkat
796// int unlinkat(int dirfd, const char *pathname, int flags);1043// int unlinkat(int dirfd, const char *pathname, int flags);
1044// asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag);
7971045
798// renameat1046// renameat
799// int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);1047// int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
1048// asmlinkage long sys_renameat(int olddfd, const char __user * oldname, int newdfd, const char __user * newname);
8001049
801// linkat1050// linkat
802// int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags);1051// int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags);
1052// asmlinkage long sys_linkat(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, int flags);
8031053
804// symlinkat1054// symlinkat
805// int symlinkat(const char *target, int newdirfd, const char *linkpath);1055// int symlinkat(const char *target, int newdirfd, const char *linkpath);
1056// asmlinkage long sys_symlinkat(const char __user * oldname, int newdfd, const char __user * newname);
8061057
807// readlinkat1058// readlinkat
808// ssize_t readlinkat(int dirfd, const char *restrict pathname, char *restrict buf, size_t bufsiz);1059// ssize_t readlinkat(int dirfd, const char *restrict pathname, char *restrict buf, size_t bufsiz);
1060// asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, int bufsiz);
8091061
810// fchmodat1062// fchmodat
811// int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags);1063// int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags);
1064// asmlinkage long sys_fchmodat(int dfd, const char __user *filename, umode_t mode);
8121065
813// faccessat1066// faccessat
814// int faccessat(int dirfd, const char *pathname, int mode, int flags);1067// int faccessat(int dirfd, const char *pathname, int mode, int flags);
1068// asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode);
8151069
816// pselect61070// pselect6
817// int pselect(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, const struct timespec *_Nullable restrict timeout, const sigset_t *_Nullable restrict sigmask);1071// int pselect(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, const struct timespec *_Nullable restrict timeout, const sigset_t *_Nullable restrict sigmask);
1072// asmlinkage long sys_pselect6(int, fd_set __user *, fd_set __user *, fd_set __user *, struct __kernel_timespec __user *, void __user *);
8181073
819// ppoll1074// ppoll
820// int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *_Nullable tmo_p, const sigset_t *_Nullable sigmask);1075// int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *_Nullable tmo_p, const sigset_t *_Nullable sigmask);
1076// asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int, struct __kernel_timespec __user *, const sigset_t __user *, size_t);
8211077
822// unshare1078// unshare
823// int unshare(int flags);1079// int unshare(int flags);
1080// asmlinkage long sys_unshare(unsigned long unshare_flags);
8241081
825// set_robust_list1082// set_robust_list
826// long syscall(SYS_set_robust_list, struct robust_list_head *head, size_t len);1083// long syscall(SYS_set_robust_list, struct robust_list_head *head, size_t len);
1084// asmlinkage long sys_set_robust_list(struct robust_list_head __user *head, size_t len);
8271085
828// get_robust_list1086// get_robust_list
829// long syscall(SYS_get_robust_list, int pid, struct robust_list_head **head_ptr, size_t *len_ptr);1087// long syscall(SYS_get_robust_list, int pid, struct robust_list_head **head_ptr, size_t *len_ptr);
1088// asmlinkage long sys_get_robust_list(int pid, struct robust_list_head __user * __user *head_ptr, size_t __user *len_ptr);
8301089
831// splice1090// splice
832// ssize_t splice(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags);1091// ssize_t splice(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags);
1092// asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags);
8331093
834// tee1094// tee
835// ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags);1095// ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags);
1096// asmlinkage long sys_tee(int fdin, int fdout, size_t len, unsigned int flags);
8361097
837// sync_file_range1098// sync_file_range
838// int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags);1099// int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags);
1100// asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, unsigned int flags);
8391101
840// vmsplice1102// vmsplice
841// ssize_t vmsplice(int fd, const struct iovec *iov, size_t nr_segs, unsigned int flags);1103// ssize_t vmsplice(int fd, const struct iovec *iov, size_t nr_segs, unsigned int flags);
1104// asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov, unsigned long nr_segs, unsigned int flags);
8421105
843// move_pages1106// move_pages
844// long move_pages(int pid, unsigned long count, void *pages[.count], const int nodes[.count], int status[.count], int flags);1107// long move_pages(int pid, unsigned long count, void *pages[.count], const int nodes[.count], int status[.count], int flags);
1108// asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, const void __user * __user *pages, const int __user *nodes, int __user *status, int flags);
8451109
846// utimensat1110// utimensat
847// int utimensat(int dirfd, const char *pathname, const struct timespec times[_Nullable 2], int flags);1111// int utimensat(int dirfd, const char *pathname, const struct timespec times[_Nullable 2], int flags);
1112// asmlinkage long sys_utimensat(int dfd, const char __user *filename, struct __kernel_timespec __user *utimes, int flags);
8481113
849// epoll_pwait1114// epoll_pwait
850// int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask);1115// int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask);
1116// asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events, int maxevents, int timeout, const sigset_t __user *sigmask, size_t sigsetsize);
8511117
852// signalfd1118// signalfd
853// int signalfd(int fd, const sigset_t *mask, int flags);1119// int signalfd(int fd, const sigset_t *mask, int flags);
1120// asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
8541121
855// timerfd_create1122// timerfd_create
856// int timerfd_create(int clockid, int flags);1123// int timerfd_create(int clockid, int flags);
1124// asmlinkage long sys_timerfd_create(int clockid, int flags);
8571125
858// eventfd1126// eventfd
859// int eventfd(unsigned int initval, int flags);1127// int eventfd(unsigned int initval, int flags);
1128// asmlinkage long sys_eventfd(unsigned int count);
8601129
861// fallocate1130// fallocate
862// int fallocate(int fd, int mode, off_t offset, off_t len);1131// int fallocate(int fd, int mode, off_t offset, off_t len);
1132// asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len);
8631133
864// timerfd_settime1134// timerfd_settime
865// int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value);1135// int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value);
1136// asmlinkage long sys_timerfd_settime(int ufd, int flags, const struct __kernel_itimerspec __user *utmr, struct __kernel_itimerspec __user *otmr);
8661137
867// timerfd_gettime1138// timerfd_gettime
868// int timerfd_gettime(int fd, struct itimerspec *curr_value);1139// int timerfd_gettime(int fd, struct itimerspec *curr_value);
1140// asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr);
8691141
870// accept41142// accept4
871// int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags);1143// int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags);
1144// asmlinkage long sys_accept4(int, struct sockaddr __user *, int __user *, int);
8721145
873// signalfd41146// signalfd4
874// int signalfd(int fd, const sigset_t *mask, int flags);1147// int signalfd(int fd, const sigset_t *mask, int flags);
1148// asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags);
8751149
876// eventfd21150// eventfd2
877// int eventfd(unsigned int initval, int flags);1151// int eventfd(unsigned int initval, int flags);
1152// asmlinkage long sys_eventfd2(unsigned int count, int flags);
8781153
879// epoll_create11154// epoll_create1
880// int epoll_create1(int flags);1155// int epoll_create1(int flags);
1156// asmlinkage long sys_epoll_create1(int flags);
8811157
882// dup31158// dup3
883// int dup3(int oldfd, int newfd, int flags);1159// int dup3(int oldfd, int newfd, int flags);
1160// asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
8841161
885// pipe21162// pipe2
886// int pipe2(int pipefd[2], int flags);1163// int pipe2(int pipefd[2], int flags);
1164// asmlinkage long sys_pipe2(int __user *fildes, int flags);
8871165
888// inotify_init11166// inotify_init1
889// int inotify_init1(int flags);1167// int inotify_init1(int flags);
1168// asmlinkage long sys_inotify_init1(int flags);
8901169
891// preadv1170// preadv
892// ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset);1171// ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset);
1172// asmlinkage long sys_preadv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h);
8931173
894// pwritev1174// pwritev
895// ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset);1175// ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset);
1176// asmlinkage long sys_pwritev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h);
8961177
897// rt_tgsigqueueinfo1178// rt_tgsigqueueinfo
898// int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info);1179// int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info);
1180// asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t __user *uinfo);
8991181
900// perf_event_open1182// perf_event_open
901// int syscall(SYS_perf_event_open, struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags);1183// int syscall(SYS_perf_event_open, struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags);
1184// asmlinkage long sys_perf_event_open( struct perf_event_attr __user *attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags);
9021185
903// recvmmsg1186// recvmmsg
904// int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout);1187// int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout);
1188// asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg, unsigned int vlen, unsigned flags, struct __kernel_timespec __user *timeout);
9051189
906// fanotify_init1190// fanotify_init
907// int fanotify_init(unsigned int flags, unsigned int event_f_flags);1191// int fanotify_init(unsigned int flags, unsigned int event_f_flags);
1192// asmlinkage long sys_fanotify_init(unsigned int flags, unsigned int event_f_flags);
9081193
909// fanotify_mark1194// fanotify_mark
910// int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname);1195// int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname);
9111196
912// prlimit641197// prlimit64
913// int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit);1198// int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit);
1199// asmlinkage long sys_prlimit64(pid_t pid, unsigned int resource, const struct rlimit64 __user *new_rlim, struct rlimit64 __user *old_rlim);
9141200
915// name_to_handle_at1201// name_to_handle_at
916// int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags);1202// int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags);
1203// asmlinkage long sys_name_to_handle_at(int dfd, const char __user *name, struct file_handle __user *handle, void __user *mnt_id, int flag);
9171204
918// open_by_handle_at1205// open_by_handle_at
919// int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags);1206// int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags);
1207// asmlinkage long sys_open_by_handle_at(int mountdirfd, struct file_handle __user *handle, int flags);
9201208
921// clock_adjtime1209// clock_adjtime
922// int clock_adjtime(clockid_t clk_id, struct timex *buf);1210// int clock_adjtime(clockid_t clk_id, struct timex *buf);
1211// asmlinkage long sys_clock_adjtime(clockid_t which_clock, struct __kernel_timex __user *tx);
9231212
924// syncfs1213// syncfs
925// int syncfs(int fd);1214// int syncfs(int fd);
1215// asmlinkage long sys_syncfs(int fd);
9261216
927// sendmmsg1217// sendmmsg
928// int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags);1218// int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags);
1219// asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, unsigned int vlen, unsigned flags);
9291220
930// setns1221// setns
931// int setns(int fd, int nstype);1222// int setns(int fd, int nstype);
1223// asmlinkage long sys_setns(int fd, int nstype);
9321224
933// getcpu1225// getcpu
934// int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node);1226// int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node);
1227// asmlinkage long sys_getcpu(unsigned __user *cpu, unsigned __user *node, struct getcpu_cache __user *cache);
9351228
936// process_vm_readv1229// process_vm_readv
937// ssize_t process_vm_readv(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags);1230// ssize_t process_vm_readv(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags);
1231// asmlinkage long sys_process_vm_readv(pid_t pid, const struct iovec __user *lvec, unsigned long liovcnt, const struct iovec __user *rvec, unsigned long riovcnt, unsigned long flags);
9381232
939// process_vm_writev1233// process_vm_writev
940// ssize_t process_vm_writev(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags);1234// ssize_t process_vm_writev(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags);
1235// asmlinkage long sys_process_vm_writev(pid_t pid, const struct iovec __user *lvec, unsigned long liovcnt, const struct iovec __user *rvec, unsigned long riovcnt, unsigned long flags);
9411236
942// kcmp1237// kcmp
943// int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2);1238// int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2);
1239// asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2);
9441240
945// finit_module1241// finit_module
946// int syscall(SYS_finit_module, int fd, const char *param_values, int flags);1242// int syscall(SYS_finit_module, int fd, const char *param_values, int flags);
1243// asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags);
9471244
948// sched_setattr1245// sched_setattr
949// int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags);1246// int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags);
1247// asmlinkage long sys_sched_setattr(pid_t pid, struct sched_attr __user *attr, unsigned int flags);
9501248
951// sched_getattr1249// sched_getattr
952// int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags);1250// int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags);
1251// asmlinkage long sys_sched_getattr(pid_t pid, struct sched_attr __user *attr, unsigned int size, unsigned int flags);
9531252
954// renameat21253// renameat2
955// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags);1254// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags);
1255// asmlinkage long sys_renameat2(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, unsigned int flags);
9561256
957// seccomp1257// seccomp
958// int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args);1258// int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args);
1259// asmlinkage long sys_seccomp(unsigned int op, unsigned int flags, void __user *uargs);
9591260
960// getrandom1261// getrandom
961// ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags);1262// ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags);
1263// asmlinkage long sys_getrandom(char __user *buf, size_t count, unsigned int flags);
9621264
963// memfd_create1265// memfd_create
964// int memfd_create(const char *name, unsigned int flags);1266// int memfd_create(const char *name, unsigned int flags);
1267// asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags);
9651268
966// kexec_file_load1269// kexec_file_load
967// long syscall(SYS_kexec_file_load, int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline, unsigned long flags);1270// long syscall(SYS_kexec_file_load, int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline, unsigned long flags);
1271// asmlinkage long sys_kexec_file_load(int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char __user *cmdline_ptr, unsigned long flags);
9681272
969// bpf1273// bpf
970// int bpf(int cmd, union bpf_attr *attr, unsigned int size);1274// int bpf(int cmd, union bpf_attr *attr, unsigned int size);
1275// asmlinkage long sys_bpf(int cmd, union bpf_attr __user *attr, unsigned int size);
9711276
972// execveat1277// execveat
973// int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags);1278// int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags);
1279// asmlinkage long sys_execveat(int dfd, const char __user *filename, const char __user *const __user *argv, const char __user *const __user *envp, int flags);
9741280
975// userfaultfd1281// userfaultfd
976// int syscall(SYS_userfaultfd, int flags);1282// int syscall(SYS_userfaultfd, int flags);
1283// asmlinkage long sys_userfaultfd(int flags);
9771284
978// membarrier1285// membarrier
979// int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id);1286// int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id);
1287// asmlinkage long sys_membarrier(int cmd, unsigned int flags, int cpu_id);
9801288
981// mlock21289// mlock2
982// int mlock2(const void addr[.len], size_t len, unsigned int flags);1290// int mlock2(const void addr[.len], size_t len, unsigned int flags);
1291// asmlinkage long sys_mlock2(unsigned long start, size_t len, int flags);
9831292
984// copy_file_range1293// copy_file_range
985// ssize_t copy_file_range(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags);1294// ssize_t copy_file_range(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags);
1295// asmlinkage long sys_copy_file_range(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags);
9861296
987// preadv21297// preadv2
988// ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);1298// ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);
1299// asmlinkage long sys_preadv2(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h, rwf_t flags);
9891300
990// pwritev21301// pwritev2
991// ssize_t pwritev2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);1302// ssize_t pwritev2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);
1303// asmlinkage long sys_pwritev2(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h, rwf_t flags);
9921304
993// pkey_mprotect1305// pkey_mprotect
994// int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey);1306// int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey);
1307// asmlinkage long sys_pkey_mprotect(unsigned long start, size_t len, unsigned long prot, int pkey);
9951308
996// pkey_alloc1309// pkey_alloc
997// int pkey_alloc(unsigned int flags, unsigned int access_rights);1310// int pkey_alloc(unsigned int flags, unsigned int access_rights);
1311// asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val);
9981312
999// pkey_free1313// pkey_free
1000// int pkey_free(int pkey);1314// int pkey_free(int pkey);
1315// asmlinkage long sys_pkey_free(int pkey);
10011316
1002// statx1317// statx
1003// int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf);1318// int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf);
1319// asmlinkage long sys_statx(int dfd, const char __user *path, unsigned flags, unsigned mask, struct statx __user *buffer);
10041320
1005// io_pgetevents1321// io_pgetevents
1322//
1323// asmlinkage long sys_io_pgetevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event __user *events, struct __kernel_timespec __user *timeout, const struct __aio_sigset __user *sig);
10061324
1007// rseq1325// rseq
1326//
1327// asmlinkage long sys_rseq(struct rseq __user *rseq, uint32_t rseq_len, int flags, uint32_t sig);
10081328
1009// pidfd_send_signal1329// pidfd_send_signal
1010// int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags);1330// int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags);
10111331
1012// io_uring_setup1332// io_uring_setup
1333// int io_uring_setup(u32 entries, struct io_uring_params *p);
1334// asmlinkage long sys_io_uring_setup(u32 entries, struct io_uring_params __user *p);
10131335
1014// io_uring_enter1336// io_uring_enter
1337// int io_uring_enter(unsigned int fd, unsigned int to_submit, unsigned int min_complete, unsigned int flags, sigset_t *sig);
1338// asmlinkage long sys_io_uring_enter(unsigned int fd, u32 to_submit, u32 min_complete, u32 flags, const void __user *argp, size_t argsz);
10151339
1016// io_uring_register1340// io_uring_register
1341// int io_uring_register(unsigned int fd, unsigned int opcode, void *arg, unsigned int nr_args);
1342// asmlinkage long sys_io_uring_register(unsigned int fd, unsigned int op, void __user *arg, unsigned int nr_args);
10171343
1018// open_tree1344// open_tree
1345//
1346// asmlinkage long sys_open_tree(int dfd, const char __user *path, unsigned flags);
10191347
1020// move_mount1348// move_mount
1349//
1350// asmlinkage long sys_move_mount(int from_dfd, const char __user *from_path, int to_dfd, const char __user *to_path, unsigned int ms_flags);
10211351
1022// fsopen1352// fsopen
1353//
1354// asmlinkage long sys_fsopen(const char __user *fs_name, unsigned int flags);
10231355
1024// fsconfig1356// fsconfig
1357//
1358// asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, const void __user *value, int aux);
10251359
1026// fsmount1360// fsmount
1361//
1362// asmlinkage long sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags);
10271363
1028// fspick1364// fspick
1365//
1366// asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags);
10291367
1030// pidfd_open1368// pidfd_open
1031// int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags);1369// int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags);
1370// asmlinkage long sys_pidfd_open(pid_t pid, unsigned int flags);
10321371
1033// clone31372// clone3
1034// long syscall(SYS_clone3, struct clone_args *cl_args, size_t size);1373// long syscall(SYS_clone3, struct clone_args *cl_args, size_t size);
1374// asmlinkage long sys_clone3(struct clone_args __user *uargs, size_t size);
10351375
1036// close_range1376// close_range
1037// int close_range(unsigned int first, unsigned int last, int flags);1377// int close_range(unsigned int first, unsigned int last, int flags);
1378// asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
10381379
1039// openat21380// openat2
1040// int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size);1381// int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size);
1382// asmlinkage long sys_openat2(int dfd, const char __user *filename, struct open_how __user *how, size_t size);
10411383
1042// pidfd_getfd1384// pidfd_getfd
1043// int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags);1385// int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags);
1386// asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags);
10441387
1045// faccessat21388// faccessat2
1046// int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags);1389// int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags);
1390// asmlinkage long sys_faccessat2(int dfd, const char __user *filename, int mode, int flags);
10471391
1048// process_madvise1392// process_madvise
1049// ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags);1393// ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags);
1394// asmlinkage long sys_process_madvise(int pidfd, const struct iovec __user *vec, size_t vlen, int behavior, unsigned int flags);
10501395
1051// epoll_pwait21396// epoll_pwait2
1052// int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask);1397// int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask);
1398// asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user *events, int maxevents, const struct __kernel_timespec __user *timeout, const sigset_t __user *sigmask, size_t sigsetsize);
10531399
1054// mount_setattr1400// mount_setattr
1055// int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size);1401// int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size);
1402// asmlinkage long sys_mount_setattr(int dfd, const char __user *path, unsigned int flags, struct mount_attr __user *uattr, size_t usize);
10561403
1057// quotactl_fd1404// quotactl_fd
1405// int quotactl(int op, const char *_Nullable special, int id, caddr_t addr);
1406// asmlinkage long sys_quotactl_fd(unsigned int fd, unsigned int cmd, qid_t id, void __user *addr);
10581407
1059// landlock_create_ruleset1408// landlock_create_ruleset
1060// int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags);1409// int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags);
1410// asmlinkage long sys_landlock_create_ruleset(const struct landlock_ruleset_attr __user *attr, size_t size, __u32 flags);
10611411
1062// landlock_add_rule1412// landlock_add_rule
1063// int syscall(SYS_landlock_add_rule, int ruleset_fd, enum landlock_rule_type rule_type, const void *rule_attr, uint32_t flags);1413// int syscall(SYS_landlock_add_rule, int ruleset_fd, enum landlock_rule_type rule_type, const void *rule_attr, uint32_t flags);
1414// asmlinkage long sys_landlock_add_rule(int ruleset_fd, enum landlock_rule_type rule_type, const void __user *rule_attr, __u32 flags);
10641415
1065// landlock_restrict_self1416// landlock_restrict_self
1066// int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags);1417// int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags);
1418// asmlinkage long sys_landlock_restrict_self(int ruleset_fd, __u32 flags);
10671419
1068// memfd_secret1420// memfd_secret
1069// int syscall(SYS_memfd_secret, unsigned int flags);1421// int syscall(SYS_memfd_secret, unsigned int flags);
1422// asmlinkage long sys_memfd_secret(unsigned int flags);
10701423
1071// process_mrelease1424// process_mrelease
1425//
1426// asmlinkage long sys_process_mrelease(int pidfd, unsigned int flags);
10721427
1073// futex_waitv1428// futex_waitv
1429//
1430// asmlinkage long sys_futex_waitv(struct futex_waitv __user *waiters, unsigned int nr_futexes, unsigned int flags, struct __kernel_timespec __user *timeout, clockid_t clockid);
10741431
1075// set_mempolicy_home_node1432// set_mempolicy_home_node
1433//
1434// asmlinkage long sys_set_mempolicy_home_node(unsigned long start, unsigned long len, unsigned long home_node, unsigned long flags);
10761435
1077// cachestat1436// cachestat
1437//
1438// asmlinkage long sys_cachestat(unsigned int fd, struct cachestat_range __user *cstat_range, struct cachestat __user *cstat, unsigned int flags);
10781439
1079// fchmodat21440// fchmodat2
1441//
1442// asmlinkage long sys_fchmodat2(int dfd, const char __user *filename, umode_t mode, unsigned int flags);
10801443
1081// map_shadow_stack1444// map_shadow_stack
1445//
1446// asmlinkage long sys_map_shadow_stack(unsigned long addr, unsigned long size, unsigned int flags);
10821447
1083// futex_wake1448// futex_wake
1449//
1450// asmlinkage long sys_futex_wake(void __user *uaddr, unsigned long mask, int nr, unsigned int flags);
10841451
1085// futex_wait1452// futex_wait
1453//
1454// asmlinkage long sys_futex_wait(void __user *uaddr, unsigned long val, unsigned long mask, unsigned int flags, struct __kernel_timespec __user *timespec, clockid_t clockid);
10861455
1087// futex_requeue1456// futex_requeue
1457//
1458// asmlinkage long sys_futex_requeue(struct futex_waitv __user *waiters, unsigned int flags, int nr_wake, int nr_requeue);