summaryrefslogtreecommitdiff
path: root/include/linux/pidfs.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-03-05 11:08:15 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-05 13:26:12 +0100
commit4513522984a0af9c170af991c37fbb483cca654b (patch)
tree3619705755d81e80a784ae7a7081cc3216c60af5 /include/linux/pidfs.h
parent0b4200381ed4758391731fa6e84259e1847744c6 (diff)
pidfs: record exit code and cgroupid at exit
Record the exit code and cgroupid in release_task() and stash in struct pidfs_exit_info so it can be retrieved even after the task has been reaped. Link: https://lore.kernel.org/r/20250305-work-pidfs-kill_on_last_close-v3-5-c8c3d8361705@kernel.org Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/pidfs.h')
-rw-r--r--include/linux/pidfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pidfs.h b/include/linux/pidfs.h
index 7c830d0dec9a..05e6f8f4a026 100644
--- a/include/linux/pidfs.h
+++ b/include/linux/pidfs.h
@@ -6,6 +6,7 @@ struct file *pidfs_alloc_file(struct pid *pid, unsigned int flags);
void __init pidfs_init(void);
void pidfs_add_pid(struct pid *pid);
void pidfs_remove_pid(struct pid *pid);
+void pidfs_exit(struct task_struct *tsk);
extern const struct dentry_operations pidfs_dentry_operations;
#endif /* _LINUX_PID_FS_H */