1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 2 3 #ifndef _UAPI_LINUX_PIDFD_H 3 #ifndef _UAPI_LINUX_PIDFD_H 4 #define _UAPI_LINUX_PIDFD_H 4 #define _UAPI_LINUX_PIDFD_H 5 5 6 #include <linux/types.h> 6 #include <linux/types.h> 7 #include <linux/fcntl.h> 7 #include <linux/fcntl.h> 8 #include <linux/ioctl.h> << 9 8 10 /* Flags for pidfd_open(). */ 9 /* Flags for pidfd_open(). */ 11 #define PIDFD_NONBLOCK O_NONBLOCK 10 #define PIDFD_NONBLOCK O_NONBLOCK 12 #define PIDFD_THREAD O_EXCL 11 #define PIDFD_THREAD O_EXCL 13 12 14 /* Flags for pidfd_send_signal(). */ 13 /* Flags for pidfd_send_signal(). */ 15 #define PIDFD_SIGNAL_THREAD (1UL < 14 #define PIDFD_SIGNAL_THREAD (1UL << 0) 16 #define PIDFD_SIGNAL_THREAD_GROUP (1UL < 15 #define PIDFD_SIGNAL_THREAD_GROUP (1UL << 1) 17 #define PIDFD_SIGNAL_PROCESS_GROUP (1UL < 16 #define PIDFD_SIGNAL_PROCESS_GROUP (1UL << 2) 18 << 19 #define PIDFS_IOCTL_MAGIC 0xFF << 20 << 21 #define PIDFD_GET_CGROUP_NAMESPACE << 22 #define PIDFD_GET_IPC_NAMESPACE << 23 #define PIDFD_GET_MNT_NAMESPACE << 24 #define PIDFD_GET_NET_NAMESPACE << 25 #define PIDFD_GET_PID_NAMESPACE << 26 #define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE << 27 #define PIDFD_GET_TIME_NAMESPACE << 28 #define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE << 29 #define PIDFD_GET_USER_NAMESPACE << 30 #define PIDFD_GET_UTS_NAMESPACE << 31 17 32 #endif /* _UAPI_LINUX_PIDFD_H */ 18 #endif /* _UAPI_LINUX_PIDFD_H */ 33 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.