Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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_get_pid(struct pid *pid);
18void pidfs_put_pid(struct pid *pid);
19
20#endif /* _LINUX_PID_FS_H */