1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2
3#ifndef _UAPI_LINUX_PIDFD_H
4#define _UAPI_LINUX_PIDFD_H
5
6#include <linux/types.h>
7#include <linux/fcntl.h>
8
9/* Flags for pidfd_open(). */
10#define PIDFD_NONBLOCK O_NONBLOCK
11#define PIDFD_THREAD O_EXCL
12
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)
17
18#endif /* _UAPI_LINUX_PIDFD_H */
19

source code of linux/include/uapi/linux/pidfd.h