1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 #ifndef _UAPI_LINUX_PIDFD_H
4 #define _UAPI_LINUX_PIDFD_H
6 #include <linux/types.h>
7 #include <linux/fcntl.h>
9 /* Flags for pidfd_open(). */
10 #define PIDFD_NONBLOCK O_NONBLOCK
11 #define PIDFD_THREAD O_EXCL
13 /* Flags for pidfd_send_signal(). */
14 #define PIDFD_SIGNAL_THREAD (1UL << 0)
15 #define PIDFD_SIGNAL_THREAD_GROUP (1UL << 1)
16 #define PIDFD_SIGNAL_PROCESS_GROUP (1UL << 2)
18 #endif /* _UAPI_LINUX_PIDFD_H */