diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-04-25 11:11:32 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-04-26 09:28:03 +0300 |
| commit | a71f402acd71a942e59c16270ad61dee06de6e24 (patch) | |
| tree | bff0df3c19d5342474642047c3c32cd10a5158ad /include/uapi/linux | |
| parent | fd0a109a0f6b7524543d17520da92a44a9f5343c (diff) | |
| download | linux-a71f402acd71a942e59c16270ad61dee06de6e24.tar.xz | |
pidfs: get rid of __pidfd_prepare()
Fold it into pidfd_prepare() and rename PIDFD_CLONE to PIDFD_STALE to
indicate that the passed pid might not have task linkage and no explicit
check for that should be performed.
Link: https://lore.kernel.org/20250425-work-pidfs-net-v2-3-450a19461e75@kernel.org
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: David Rheinsberg <david@readahead.eu>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/pidfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/pidfd.h b/include/uapi/linux/pidfd.h index 2970ef44655a..8c1511edd0e9 100644 --- a/include/uapi/linux/pidfd.h +++ b/include/uapi/linux/pidfd.h @@ -12,7 +12,7 @@ #define PIDFD_THREAD O_EXCL #ifdef __KERNEL__ #include <linux/sched.h> -#define PIDFD_CLONE CLONE_PIDFD +#define PIDFD_STALE CLONE_PIDFD #endif /* Flags for pidfd_send_signal(). */ |
