forked from mirrors/linux
		
	 4513522984
			
		
	
	
		4513522984
		
			
		
	
	
	
	
		
			
			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>
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			398 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			398 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| #ifndef _LINUX_PID_FS_H
 | |
| #define _LINUX_PID_FS_H
 | |
| 
 | |
| 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 */
 |