diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pid.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/sched.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index b6f4ba16065a..3c8ef5a199ca 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h | |||
| @@ -66,6 +66,8 @@ struct pid | |||
| 66 | 66 | ||
| 67 | extern struct pid init_struct_pid; | 67 | extern struct pid init_struct_pid; |
| 68 | 68 | ||
| 69 | extern const struct file_operations pidfd_fops; | ||
| 70 | |||
| 69 | static inline struct pid *get_pid(struct pid *pid) | 71 | static inline struct pid *get_pid(struct pid *pid) |
| 70 | { | 72 | { |
| 71 | if (pid) | 73 | if (pid) |
diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h index 22627f80063e..ed4ee170bee2 100644 --- a/include/uapi/linux/sched.h +++ b/include/uapi/linux/sched.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #define CLONE_FS 0x00000200 /* set if fs info shared between processes */ | 10 | #define CLONE_FS 0x00000200 /* set if fs info shared between processes */ |
| 11 | #define CLONE_FILES 0x00000400 /* set if open files shared between processes */ | 11 | #define CLONE_FILES 0x00000400 /* set if open files shared between processes */ |
| 12 | #define CLONE_SIGHAND 0x00000800 /* set if signal handlers and blocked signals shared */ | 12 | #define CLONE_SIGHAND 0x00000800 /* set if signal handlers and blocked signals shared */ |
| 13 | #define CLONE_PIDFD 0x00001000 /* set if a pidfd should be placed in parent */ | ||
| 13 | #define CLONE_PTRACE 0x00002000 /* set if we want to let tracing continue on the child too */ | 14 | #define CLONE_PTRACE 0x00002000 /* set if we want to let tracing continue on the child too */ |
| 14 | #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ | 15 | #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ |
| 15 | #define CLONE_PARENT 0x00008000 /* set if we want to have the same parent as the cloner */ | 16 | #define CLONE_PARENT 0x00008000 /* set if we want to have the same parent as the cloner */ |
