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