1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_PID_FS_H 3 #define _LINUX_PID_FS_H 4 5 struct coredump_params; 6 7 struct file *pidfs_alloc_file(struct pid *pid, unsigned int flags); 8 void __init pidfs_init(void); 9 void pidfs_add_pid(struct pid *pid); 10 void pidfs_remove_pid(struct pid *pid); 11 void pidfs_exit(struct task_struct *tsk); 12 #ifdef CONFIG_COREDUMP 13 void pidfs_coredump(const struct coredump_params *cprm); 14 #endif 15 extern const struct dentry_operations pidfs_dentry_operations; 16 int pidfs_register_pid(struct pid *pid); 17 void pidfs_free_pid(struct pid *pid); 18 19 #endif /* _LINUX_PID_FS_H */ 20