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_prepare_pid(struct pid *pid);
10int pidfs_add_pid(struct pid *pid);
11void pidfs_remove_pid(struct pid *pid);
12void pidfs_exit(struct task_struct *tsk);
13#ifdef CONFIG_COREDUMP
14void pidfs_coredump(const struct coredump_params *cprm);
15#endif
16extern const struct dentry_operations pidfs_dentry_operations;
17int pidfs_register_pid(struct pid *pid);
18void pidfs_free_pid(struct pid *pid);
19
20#endif /* _LINUX_PID_FS_H */