2024-02-12 15:32:38 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _LINUX_PID_FS_H
|
|
|
|
#define _LINUX_PID_FS_H
|
|
|
|
|
2025-05-16 11:25:32 +00:00
|
|
|
struct coredump_params;
|
|
|
|
|
2024-02-12 15:32:38 +00:00
|
|
|
struct file *pidfs_alloc_file(struct pid *pid, unsigned int flags);
|
|
|
|
void __init pidfs_init(void);
|
2024-12-14 21:01:28 +00:00
|
|
|
void pidfs_add_pid(struct pid *pid);
|
2024-11-29 13:02:23 +00:00
|
|
|
void pidfs_remove_pid(struct pid *pid);
|
2025-03-05 10:08:15 +00:00
|
|
|
void pidfs_exit(struct task_struct *tsk);
|
2025-05-16 11:25:32 +00:00
|
|
|
#ifdef CONFIG_COREDUMP
|
|
|
|
void pidfs_coredump(const struct coredump_params *cprm);
|
|
|
|
#endif
|
2024-12-19 17:01:32 +00:00
|
|
|
extern const struct dentry_operations pidfs_dentry_operations;
|
2025-04-25 08:11:30 +00:00
|
|
|
int pidfs_register_pid(struct pid *pid);
|
|
|
|
void pidfs_get_pid(struct pid *pid);
|
|
|
|
void pidfs_put_pid(struct pid *pid);
|
2024-02-12 15:32:38 +00:00
|
|
|
|
|
|
|
#endif /* _LINUX_PID_FS_H */
|