diff options
author | Sargun Dhillon <sargun@sargun.me> | 2020-01-07 09:59:26 -0800 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2020-01-13 21:49:47 +0100 |
commit | 9a2cef09c801de54feecd912303ace5c27237f12 (patch) | |
tree | 6ef2196cac67b0f0db5e3d3150df0fd55d739d62 /include | |
parent | 8649c322f75c96e7ced2fec201e123b2b073bf09 (diff) | |
download | lwn-9a2cef09c801de54feecd912303ace5c27237f12.tar.gz lwn-9a2cef09c801de54feecd912303ace5c27237f12.zip |
arch: wire up pidfd_getfd syscall
This wires up the pidfd_getfd syscall for all architectures.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200107175927.4558-4-sargun@sargun.me
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/syscalls.h | 1 | ||||
-rw-r--r-- | include/uapi/asm-generic/unistd.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 5262b7a76d39..8640af30c506 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -1000,6 +1000,7 @@ asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags) asmlinkage long sys_pidfd_send_signal(int pidfd, int sig, siginfo_t __user *info, unsigned int flags); +asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags); /* * Architecture-specific system calls diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 1fc8faa6e973..d36ec3d645bd 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -850,9 +850,11 @@ __SYSCALL(__NR_pidfd_open, sys_pidfd_open) #define __NR_clone3 435 __SYSCALL(__NR_clone3, sys_clone3) #endif +#define __NR_pidfd_getfd 438 +__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) #undef __NR_syscalls -#define __NR_syscalls 436 +#define __NR_syscalls 439 /* * 32 bit systems traditionally used different |