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 {
3939
4040// open
4141// 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
4344// close
4445// int close(int fd);
46// asmlinkage long sys_close(unsigned int fd);
4547
4648// stat
4749// 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
4952// fstat
5053// int fstat(int fd, struct stat *statbuf);
54// asmlinkage long sys_fstat(unsigned int fd, struct __old_kernel_stat __user *statbuf);
5155
5256// lstat
5357// 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
5560// poll
5661// 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
5864// lseek
5965// 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
6168// mmap
6269// 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
6472// mprotect
6573// 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
6776// munmap
6877// int munmap(void addr[.length], size_t length);
78// asmlinkage long sys_munmap(unsigned long addr, size_t len);
6979
7080// brk
7181// int brk(void *addr);
82// asmlinkage long sys_brk(unsigned long brk);
7283
7384// 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
7588// rt_sigprocmask
7689// 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
7892// rt_sigreturn
7993// int sigreturn(...);
94// asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
8095
8196// ioctl
97// int ioctl(int fd, unsigned long op, ...);
98// asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
8299
83100// pread64
84101// 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
86104// pwrite64
87105// 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
89108// readv
90109// 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
92112// writev
93113// 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
95116// access
96117// int access(const char *pathname, int mode);
118// asmlinkage long sys_access(const char __user *filename, int mode);
97119
98120// pipe
99121// int pipe(int pipefd[2]);
122// asmlinkage long sys_pipe(int __user *fildes);
100123
101124// select
102125// 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
104128// sched_yield
105129// int sched_yield(void);
130// asmlinkage long sys_sched_yield(void);
106131
107132// mremap
108133// 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
110136// msync
111137// int msync(void addr[.length], size_t length, int flags);
138// asmlinkage long sys_msync(unsigned long start, size_t len, int flags);
112139
113140// mincore
114141// 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
116144// madvise
117145// int madvise(void addr[.length], size_t length, int advice);
146// asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior);
118147
119148// shmget
120149// int shmget(key_t key, size_t size, int shmflg);
150// asmlinkage long sys_shmget(key_t key, size_t size, int flag);
121151
122152// shmat
123153// void *shmat(int shmid, const void *_Nullable shmaddr, int shmflg);
154// asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
124155
125156// shmctl
126157// 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
128160// dup
129161// int dup(int oldfd);
162// asmlinkage long sys_dup(unsigned int fildes);
130163
131164// dup2
132165// int dup2(int oldfd, int newfd);
166// asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
133167
134168// pause
135169// int pause(void);
170// asmlinkage long sys_pause(void);
136171
137172// nanosleep
138173// 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
140176// getitimer
141177// int getitimer(int which, struct itimerval *curr_value);
178// asmlinkage long sys_getitimer(int which, struct __kernel_old_itimerval __user *value);
142179
143180// alarm
144181// unsigned int alarm(unsigned int seconds);
182// asmlinkage long sys_alarm(unsigned int seconds);
145183
146184// setitimer
147185// 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
149188// getpid
150189// pid_t getpid(void);
190// asmlinkage long sys_getpid(void);
151191
152192// sendfile
153193// 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
155196// socket
156197// int socket(int domain, int type, int protocol);
198// asmlinkage long sys_socket(int, int, int);
157199
158200// connect
159201// int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
202// asmlinkage long sys_connect(int, struct sockaddr __user *, int);
160203
161204// accept
162205// 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
164208// sendto
165209// 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
167212// recvfrom
168213// 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
170216// sendmsg
171217// 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
173220// recvmsg
174221// 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
176224// shutdown
177225// int shutdown(int sockfd, int how);
226// asmlinkage long sys_shutdown(int, int);
178227
179228// bind
180229// int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
230// asmlinkage long sys_bind(int, struct sockaddr __user *, int);
181231
182232// listen
183233// int listen(int sockfd, int backlog);
234// asmlinkage long sys_listen(int, int);
184235
185236// getsockname
186237// int getsockname(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);
238// asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
187239
188240// getpeername
189241// int getpeername(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen);
242// asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
190243
191244// socketpair
192245// int socketpair(int domain, int type, int protocol, int sv[2]);
246// asmlinkage long sys_socketpair(int, int, int, int __user *);
193247
194248// setsockopt
195249// 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
197252// getsockopt
198253// 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
200256// clone
201257// 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
203260// fork
204261// pid_t fork(void);
262// asmlinkage long sys_fork(void);
205263
206264// vfork
207265// pid_t vfork(void);
266// asmlinkage long sys_vfork(void);
208267
209268// execve
210269// 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
212272// exit
213273// [[noreturn]] void _exit(int status);
274// asmlinkage long sys_exit(int error_code);
214275
215276// wait4
216277// 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
218280// kill
219281// int kill(pid_t pid, int sig);
282// asmlinkage long sys_kill(pid_t pid, int sig);
220283
221284// uname
222285// int uname(struct utsname *buf);
286// asmlinkage long sys_uname(struct old_utsname __user *);
223287
224288// semget
225289// int semget(key_t key, int nsems, int semflg);
290// asmlinkage long sys_semget(key_t key, int nsems, int semflg);
226291
227292// semop
228293// int semop(int semid, struct sembuf *sops, size_t nsops);
294// asmlinkage long sys_semop(int semid, struct sembuf __user *sops, unsigned nsops);
229295
230296// semctl
231297// int semctl(int semid, int semnum, int op, ...);
298// asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg);
232299
233300// shmdt
234301// int shmdt(const void *shmaddr);
302// asmlinkage long sys_shmdt(char __user *shmaddr);
235303
236304// msgget
237305// int msgget(key_t key, int msgflg);
306// asmlinkage long sys_msgget(key_t key, int msgflg);
238307
239308// msgsnd
240309// 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
242312// msgrcv
243313// 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
245316// msgctl
246317// 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
248320// fcntl
249321// int fcntl(int fd, int op, ... /* arg */ );
322// asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg);
250323
251324// flock
252325// int flock(int fd, int op);
326// asmlinkage long sys_flock(unsigned int fd, unsigned int cmd);
253327
254328// fsync
255329// int fsync(int fd);
330// asmlinkage long sys_fsync(unsigned int fd);
256331
257332// fdatasync
258333// int fdatasync(int fd);
334// asmlinkage long sys_fdatasync(unsigned int fd);
259335
260336// truncate
261337// int truncate(const char *path, off_t length);
338// asmlinkage long sys_truncate(const char __user *path, long length);
262339
263340// ftruncate
264341// int ftruncate(int fd, off_t length);
342// asmlinkage long sys_ftruncate(unsigned int fd, off_t length);
265343
266344// 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
269348// getcwd
270349// char *getcwd(char buf[.size], size_t size);
350// asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
271351
272352// chdir
273353// int chdir(const char *path);
354// asmlinkage long sys_chdir(const char __user *filename);
274355
275356// fchdir
276357// int fchdir(int fd);
358// asmlinkage long sys_fchdir(unsigned int fd);
277359
278360// rename
279361// int rename(const char *oldpath, const char *newpath);
362// asmlinkage long sys_rename(const char __user *oldname, const char __user *newname);
280363
281364// mkdir
282365// int mkdir(const char *pathname, mode_t mode);
366// asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode);
283367
284368// rmdir
285369// int rmdir(const char *pathname);
370// asmlinkage long sys_rmdir(const char __user *pathname);
286371
287372// creat
288373// int creat(const char *pathname, mode_t mode);
374// asmlinkage long sys_creat(const char __user *pathname, umode_t mode);
289375
290376// link
291377// int link(const char *oldpath, const char *newpath);
378// asmlinkage long sys_link(const char __user *oldname, const char __user *newname);
292379
293380// unlink
294381// int unlink(const char *pathname);
382// asmlinkage long sys_unlink(const char __user *pathname);
295383
296384// symlink
297385// int symlink(const char *target, const char *linkpath);
386// asmlinkage long sys_symlink(const char __user *old, const char __user *new);
298387
299388// readlink
300389// 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
302392// chmod
303393// int chmod(const char *pathname, mode_t mode);
394// asmlinkage long sys_chmod(const char __user *filename, umode_t mode);
304395
305396// fchmod
306397// int fchmod(int fd, mode_t mode);
398// asmlinkage long sys_fchmod(unsigned int fd, umode_t mode);
307399
308400// chown
309401// 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
311404// fchown
312405// 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
314408// lchown
315409// 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
317412// umask
318413// mode_t umask(mode_t mask);
414// asmlinkage long sys_umask(int mask);
319415
320416// gettimeofday
321417// 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
323420// getrlimit
324421// int getrlimit(int resource, struct rlimit *rlim);
422// asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit __user *rlim);
325423
326424// getrusage
327425// int getrusage(int who, struct rusage *usage);
426// asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
328427
329428// sysinfo
330429// int sysinfo(struct sysinfo *info);
430// asmlinkage long sys_sysinfo(struct sysinfo __user *info);
331431
332432// times
333433// clock_t times(struct tms *buf);
434// asmlinkage long sys_times(struct tms __user *tbuf);
334435
335436// ptrace
336437// 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
338440// getuid
339441// uid_t getuid(void);
442// asmlinkage long sys_getuid(void);
340443
341444// syslog
342445// int syscall(SYS_syslog, int type, char *bufp, int len);
446// asmlinkage long sys_syslog(int type, char __user *buf, int len);
343447
344448// getgid
345449// gid_t getgid(void);
450// asmlinkage long sys_getgid(void);
346451
347452// setuid
348453// int setuid(uid_t uid);
454// asmlinkage long sys_setuid(uid_t uid);
349455
350456// setgid
351457// int setgid(gid_t gid);
458// asmlinkage long sys_setgid(gid_t gid);
352459
353460// geteuid
354461// uid_t geteuid(void);
462// asmlinkage long sys_geteuid(void);
355463
356464// getegid
357465// gid_t getegid(void);
466// asmlinkage long sys_getegid(void);
358467
359468// setpgid
360469// int setpgid(pid_t pid, pid_t pgid);
470// asmlinkage long sys_setpgid(pid_t pid, pid_t pgid);
361471
362472// getppid
363473// pid_t getppid(void);
474// asmlinkage long sys_getppid(void);
364475
365476// getpgrp
366477// pid_t getpgrp(void);
478// asmlinkage long sys_getpgrp(void);
367479
368480// setsid
369481// pid_t setsid(void);
482// asmlinkage long sys_setsid(void);
370483
371484// setreuid
372485// int setreuid(uid_t ruid, uid_t euid);
486// asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
373487
374488// setregid
375489// int setregid(gid_t rgid, gid_t egid);
490// asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
376491
377492// getgroups
378493// int getgroups(int size, gid_t list[]);
494// asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
379495
380496// setgroups
381497// int setgroups(size_t size, const gid_t *_Nullable list);
498// asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
382499
383500// setresuid
384501// 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
386504// getresuid
387505// 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
389508// setresgid
390509// 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
392512// getresgid
393513// 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
395516// getpgid
396517// pid_t getpgid(pid_t pid);
518// asmlinkage long sys_getpgid(pid_t pid);
397519
398520// setfsuid
399521// [[deprecated]] int setfsuid(uid_t fsuid);
522// asmlinkage long sys_setfsuid(uid_t uid);
400523
401524// setfsgid
402525// [[deprecated]] int setfsgid(gid_t fsgid);
526// asmlinkage long sys_setfsgid(gid_t gid);
403527
404528// getsid
405529// pid_t getsid(pid_t pid);
530// asmlinkage long sys_getsid(pid_t pid);
406531
407532// capget
408533// 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
410536// capset
411537// 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
413540// rt_sigpending
414541// int sigpending(sigset_t *set);
542// asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize);
415543
416544// rt_sigtimedwait
417545// 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
419548// rt_sigqueueinfo
420549// 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
422552// rt_sigsuspend
423553// int sigsuspend(const sigset_t *mask);
554// asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
424555
425556// sigaltstack
426557// 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
428560// utime
429561// int utime(const char *filename, const struct utimbuf *_Nullable times);
562// asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times);
430563
431564// mknod
432565// 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
434568// uselib
435569// [[deprecated]] int uselib(const char *library);
570// asmlinkage long sys_uselib(const char __user *library);
436571
437572// personality
438573// int personality(unsigned long persona);
574// asmlinkage long sys_personality(unsigned int personality);
439575
440576// ustat
441577// [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf);
578// asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);
442579
443580// statfs
444581// int statfs(const char *path, struct statfs *buf);
582// asmlinkage long sys_statfs(const char __user * path, struct statfs __user *buf);
445583
446584// fstatfs
447585// int fstatfs(int fd, struct statfs *buf);
586// asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf);
448587
449588// sysfs
589//
590// asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2);
450591
451592// getpriority
452593// int getpriority(int which, id_t who);
594// asmlinkage long sys_getpriority(int which, int who);
453595
454596// setpriority
455597// int setpriority(int which, id_t who, int prio);
598// asmlinkage long sys_setpriority(int which, int who, int niceval);
456599
457600// sched_setparam
458601// 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
460604// sched_getparam
461605// 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
463608// sched_setscheduler
464609// 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
466612// sched_getscheduler
467613// int sched_getscheduler(pid_t pid);
614// asmlinkage long sys_sched_getscheduler(pid_t pid);
468615
469616// sched_get_priority_max
470617// int sched_get_priority_max(int policy);
618// asmlinkage long sys_sched_get_priority_max(int policy);
471619
472620// sched_get_priority_min
473621// int sched_get_priority_min(int policy);
622// asmlinkage long sys_sched_get_priority_min(int policy);
474623
475624// sched_rr_get_interval
476625// 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
478628// mlock
479629// int mlock(const void addr[.len], size_t len);
630// asmlinkage long sys_mlock(unsigned long start, size_t len);
480631
481632// munlock
482633// int munlock(const void addr[.len], size_t len);
634// asmlinkage long sys_munlock(unsigned long start, size_t len);
483635
484636// mlockall
485637// int mlockall(int flags);
638// asmlinkage long sys_mlockall(int flags);
486639
487640// munlockall
488641// int munlockall(void);
642// asmlinkage long sys_munlockall(void);
489643
490644// vhangup
491645// int vhangup(void);
646// asmlinkage long sys_vhangup(void);
492647
493648// modify_ldt
494649// int syscall(SYS_modify_ldt, int func, void ptr[.bytecount], unsigned long bytecount);
495650
496651// pivot_root
497652// 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
499655// _sysctl
500656// [[deprecated]] int _sysctl(struct __sysctl_args *args);
657// asmlinkage long sys_ni_syscall(void);
501658
502659// prctl
503660// 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
505663// arch_prctl
506664
507665// adjtimex
508666// int adjtimex(struct timex *buf);
667// asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p);
509668
510669// setrlimit
511670// int setrlimit(int resource, const struct rlimit *rlim);
671// asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit __user *rlim);
512672
513673// chroot
514674// int chroot(const char *path);
675// asmlinkage long sys_chroot(const char __user *filename);
515676
516677// sync
517678// void sync(void);
679// asmlinkage long sys_sync(void);
518680
519681// acct
520682// int acct(const char *_Nullable filename);
683// asmlinkage long sys_acct(const char __user *name);
521684
522685// settimeofday
523686// 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
525689// mount
526690// 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
528693// umount2
529694// int umount2(const char *target, int flags);
695// asmlinkage long sys_umount(char __user *name, int flags);
530696
531697// swapon
532698// int swapon(const char *path, int swapflags);
699// asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags);
533700
534701// swapoff
535702// int swapoff(const char *path);
703// asmlinkage long sys_swapoff(const char __user *specialfile);
536704
537705// reboot
538706// int reboot(int op);
707// asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user *arg);
539708
540709// sethostname
541710// int sethostname(const char *name, size_t len);
711// asmlinkage long sys_sethostname(char __user *name, int len);
542712
543713// setdomainname
544714// int setdomainname(const char *name, size_t len);
715// asmlinkage long sys_setdomainname(char __user *name, int len);
545716
546717// iopl
547718// [[deprecated]] int iopl(int level);
719// asmlinkage long sys_ni_syscall(void);
548720
549721// ioperm
550722// 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
552725// create_module
553726// [[deprecated]] caddr_t create_module(const char *name, size_t size);
554727
555728// init_module
556729// 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
558732// delete_module
559733// 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
561736// get_kernel_syms
562737// [[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 {
566741
567742// quotactl
568743// 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
570746// nfsservctl
571747// long nfsservctl(int cmd, struct nfsctl_arg *argp, union nfsctl_res *resp);
572748
573749// gettid
574750// pid_t gettid(void);
751// asmlinkage long sys_gettid(void);
575752
576753// readahead
577754// 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
579757// setxattr
580758// 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
582761// lsetxattr
583762// 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
585765// fsetxattr
586766// 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
588769// getxattr
589770// 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
591773// lgetxattr
592774// 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
594777// fgetxattr
595778// 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
597781// listxattr
598782// 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
600785// llistxattr
601786// 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
603789// flistxattr
604790// 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
606793// removexattr
607794// int removexattr(const char *path, const char *name);
795// asmlinkage long sys_removexattr(const char __user *path, const char __user *name);
608796
609797// lremovexattr
610798// int lremovexattr(const char *path, const char *name);
799// asmlinkage long sys_lremovexattr(const char __user *path, const char __user *name);
611800
612801// fremovexattr
613802// int fremovexattr(int fd, const char *name);
803// asmlinkage long sys_fremovexattr(int fd, const char __user *name);
614804
615805// tkill
616806// [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig);
807// asmlinkage long sys_tkill(pid_t pid, int sig);
617808
618809// time
619810// time_t time(time_t *_Nullable tloc);
811// asmlinkage long sys_time(__kernel_old_time_t __user *tloc);
620812
621813// futex
622814// 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
624817// sched_setaffinity
625818// 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
627821// sched_getaffinity
628822// 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
630825// set_thread_area
631826
632827// io_setup
633828// 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
635831// io_destroy
636832// int syscall(SYS_io_destroy, aio_context_t ctx_id);
833// asmlinkage long sys_io_destroy(aio_context_t ctx);
637834
638835// io_getevents
639836// 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
641839// io_submit
642840// 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
644843// io_cancel
645844// 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
647847// get_thread_area
648848
......@@ -651,6 +851,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
651851
652852// epoll_create
653853// int epoll_create(int size);
854// asmlinkage long sys_epoll_create(int size);
654855
655856// epoll_ctl_old
656857// 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 {
660861
661862// remap_file_pages
662863// [[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
664866// getdents64
665867// 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
667870// set_tid_address
668871// pid_t syscall(SYS_set_tid_address, int *tidptr);
872// asmlinkage long sys_set_tid_address(int __user *tidptr);
669873
670874// semtimedop
671875// 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
673878// 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
675882// timer_create
676883// 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
678886// timer_settime
679887// 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
681890// timer_gettime
682891// 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
684894// timer_getoverrun
685895// int timer_getoverrun(timer_t timerid);
896// asmlinkage long sys_timer_getoverrun(timer_t timer_id);
686897
687898// timer_delete
688899// int timer_delete(timer_t timerid);
900// asmlinkage long sys_timer_delete(timer_t timer_id);
689901
690902// clock_settime
691903// 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
693906// clock_gettime
694907// 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
696910// clock_getres
697911// 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
699914// clock_nanosleep
700915// 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
702918// exit_group
703919// [[noreturn]] void syscall(SYS_exit_group, int status);
920// asmlinkage long sys_exit_group(int error_code);
704921
705922// epoll_wait
706923// 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
708926// epoll_ctl
709927// 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
711930// tgkill
712931// int tgkill(pid_t tgid, pid_t tid, int sig);
932// asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig);
713933
714934// utimes
715935// 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
717938// mbind
718939// 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
720942// set_mempolicy
721943// 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
723946// get_mempolicy
724947// 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
726950// mq_open
727951// 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
729954// mq_unlink
730955// int mq_unlink(const char *name);
956// asmlinkage long sys_mq_unlink(const char __user *name);
731957
732958// mq_timedsend
733959// 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
735962// mq_timedreceive
736963// 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
738966// mq_notify
739967// 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
741970// mq_getsetattr
742971// 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
744974// kexec_load
745975// 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
747978// waitid
748979// 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
750982// add_key
751983// 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
753986// request_key
754987// 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
756990// keyctl
757991// 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
759994// ioprio_set
760995// int syscall(SYS_ioprio_set, int which, int who, int ioprio);
996// asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
761997
762998// ioprio_get
763999// int syscall(SYS_ioprio_set, int which, int who, int ioprio);
1000// asmlinkage long sys_ioprio_get(int which, int who);
7641001
7651002// inotify_init
7661003// int inotify_init(void);
1004// asmlinkage long sys_inotify_init(void);
7671005
7681006// inotify_add_watch
7691007// 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
7711010// inotify_rm_watch
7721011// int inotify_rm_watch(int fd, int wd);
1012// asmlinkage long sys_inotify_rm_watch(int fd, __s32 wd);
7731013
7741014// migrate_pages
7751015// 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
7771018// openat
7781019// 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
7801022// mkdirat
7811023// 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
7831026// mknodat
7841027// 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
7861030// fchownat
7871031// 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
7891034// futimesat
7901035// [[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
7921038// fstatat64
7931039// 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
7951042// unlinkat
7961043// int unlinkat(int dirfd, const char *pathname, int flags);
1044// asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag);
7971045
7981046// renameat
7991047// 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
8011050// linkat
8021051// 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
8041054// symlinkat
8051055// 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
8071058// readlinkat
8081059// 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
8101062// fchmodat
8111063// 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
8131066// faccessat
8141067// 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
8161070// pselect6
8171071// 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
8191074// ppoll
8201075// 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
8221078// unshare
8231079// int unshare(int flags);
1080// asmlinkage long sys_unshare(unsigned long unshare_flags);
8241081
8251082// set_robust_list
8261083// 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
8281086// get_robust_list
8291087// 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
8311090// splice
8321091// 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
8341094// tee
8351095// 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
8371098// sync_file_range
8381099// 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
8401102// vmsplice
8411103// 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
8431106// move_pages
8441107// 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
8461110// utimensat
8471111// 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
8491114// epoll_pwait
8501115// 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
8521118// signalfd
8531119// 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
8551122// timerfd_create
8561123// int timerfd_create(int clockid, int flags);
1124// asmlinkage long sys_timerfd_create(int clockid, int flags);
8571125
8581126// eventfd
8591127// int eventfd(unsigned int initval, int flags);
1128// asmlinkage long sys_eventfd(unsigned int count);
8601129
8611130// fallocate
8621131// 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
8641134// timerfd_settime
8651135// 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
8671138// timerfd_gettime
8681139// int timerfd_gettime(int fd, struct itimerspec *curr_value);
1140// asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr);
8691141
8701142// accept4
8711143// 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
8731146// signalfd4
8741147// 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
8761150// eventfd2
8771151// int eventfd(unsigned int initval, int flags);
1152// asmlinkage long sys_eventfd2(unsigned int count, int flags);
8781153
8791154// epoll_create1
8801155// int epoll_create1(int flags);
1156// asmlinkage long sys_epoll_create1(int flags);
8811157
8821158// dup3
8831159// int dup3(int oldfd, int newfd, int flags);
1160// asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
8841161
8851162// pipe2
8861163// int pipe2(int pipefd[2], int flags);
1164// asmlinkage long sys_pipe2(int __user *fildes, int flags);
8871165
8881166// inotify_init1
8891167// int inotify_init1(int flags);
1168// asmlinkage long sys_inotify_init1(int flags);
8901169
8911170// preadv
8921171// 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
8941174// pwritev
8951175// 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
8971178// rt_tgsigqueueinfo
8981179// 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
9001182// perf_event_open
9011183// 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
9031186// recvmmsg
9041187// 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
9061190// fanotify_init
9071191// 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
9091194// fanotify_mark
9101195// int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname);
9111196
9121197// prlimit64
9131198// 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
9151201// name_to_handle_at
9161202// 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
9181205// open_by_handle_at
9191206// 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
9211209// clock_adjtime
9221210// 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
9241213// syncfs
9251214// int syncfs(int fd);
1215// asmlinkage long sys_syncfs(int fd);
9261216
9271217// sendmmsg
9281218// 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
9301221// setns
9311222// int setns(int fd, int nstype);
1223// asmlinkage long sys_setns(int fd, int nstype);
9321224
9331225// getcpu
9341226// 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
9361229// process_vm_readv
9371230// 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
9391233// process_vm_writev
9401234// 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
9421237// kcmp
9431238// 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
9451241// finit_module
9461242// 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
9481245// sched_setattr
9491246// 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
9511249// sched_getattr
9521250// 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
9541253// renameat2
9551254// 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
9571257// seccomp
9581258// 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
9601261// getrandom
9611262// 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
9631265// memfd_create
9641266// int memfd_create(const char *name, unsigned int flags);
1267// asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags);
9651268
9661269// kexec_file_load
9671270// 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
9691273// bpf
9701274// 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
9721277// execveat
9731278// 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
9751281// userfaultfd
9761282// int syscall(SYS_userfaultfd, int flags);
1283// asmlinkage long sys_userfaultfd(int flags);
9771284
9781285// membarrier
9791286// 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
9811289// mlock2
9821290// 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
9841293// copy_file_range
9851294// 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
9871297// preadv2
9881298// 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
9901301// pwritev2
9911302// 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
9931305// pkey_mprotect
9941306// 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
9961309// pkey_alloc
9971310// int pkey_alloc(unsigned int flags, unsigned int access_rights);
1311// asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val);
9981312
9991313// pkey_free
10001314// int pkey_free(int pkey);
1315// asmlinkage long sys_pkey_free(int pkey);
10011316
10021317// statx
10031318// 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
10051321// 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
10071325// rseq
1326//
1327// asmlinkage long sys_rseq(struct rseq __user *rseq, uint32_t rseq_len, int flags, uint32_t sig);
10081328
10091329// pidfd_send_signal
10101330// int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags);
10111331
10121332// 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
10141336// 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
10161340// 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
10181344// open_tree
1345//
1346// asmlinkage long sys_open_tree(int dfd, const char __user *path, unsigned flags);
10191347
10201348// 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
10221352// fsopen
1353//
1354// asmlinkage long sys_fsopen(const char __user *fs_name, unsigned int flags);
10231355
10241356// fsconfig
1357//
1358// asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, const void __user *value, int aux);
10251359
10261360// fsmount
1361//
1362// asmlinkage long sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags);
10271363
10281364// fspick
1365//
1366// asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags);
10291367
10301368// pidfd_open
10311369// int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags);
1370// asmlinkage long sys_pidfd_open(pid_t pid, unsigned int flags);
10321371
10331372// clone3
10341373// 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
10361376// close_range
10371377// 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
10391380// openat2
10401381// 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
10421384// pidfd_getfd
10431385// 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
10451388// faccessat2
10461389// 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
10481392// process_madvise
10491393// 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
10511396// epoll_pwait2
10521397// 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
10541400// mount_setattr
10551401// 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
10571404// 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
10591408// landlock_create_ruleset
10601409// 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
10621412// landlock_add_rule
10631413// 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
10651416// landlock_restrict_self
10661417// 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
10681420// memfd_secret
10691421// int syscall(SYS_memfd_secret, unsigned int flags);
1422// asmlinkage long sys_memfd_secret(unsigned int flags);
10701423
10711424// process_mrelease
1425//
1426// asmlinkage long sys_process_mrelease(int pidfd, unsigned int flags);
10721427
10731428// 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
10751432// 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
10771436// cachestat
1437//
1438// asmlinkage long sys_cachestat(unsigned int fd, struct cachestat_range __user *cstat_range, struct cachestat __user *cstat, unsigned int flags);
10781439
10791440// fchmodat2
1441//
1442// asmlinkage long sys_fchmodat2(int dfd, const char __user *filename, umode_t mode, unsigned int flags);
10801443
10811444// map_shadow_stack
1445//
1446// asmlinkage long sys_map_shadow_stack(unsigned long addr, unsigned long size, unsigned int flags);
10821447
10831448// futex_wake
1449//
1450// asmlinkage long sys_futex_wake(void __user *uaddr, unsigned long mask, int nr, unsigned int flags);
10841451
10851452// 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
10871456// futex_requeue
1457//
1458// asmlinkage long sys_futex_requeue(struct futex_waitv __user *waiters, unsigned int flags, int nr_wake, int nr_requeue);