1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __TASK_LOCAL_STORAGE_HELPER_H
3 #define __TASK_LOCAL_STORAGE_HELPER_H
6 #include <sys/syscall.h>
9 #ifndef __NR_pidfd_open
11 #define __NR_pidfd_open 544
13 #define __NR_pidfd_open 434
17 static inline int sys_pidfd_open(pid_t pid, unsigned int flags)
19 return syscall(__NR_pidfd_open, pid, flags);