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