brintos

brintos / linux-shallow public Read only

0
0
Text · 795 B · fd638dd Raw
26 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _NAMESPACE_H_3#define _NAMESPACE_H_4#ifdef __KERNEL__5 6#include <linux/cleanup.h>7#include <linux/err.h>8 9struct mnt_namespace;10struct fs_struct;11struct user_namespace;12struct ns_common;13 14extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,15		struct user_namespace *, struct fs_struct *) HWJS_SUSPENDS;16extern void put_mnt_ns(struct mnt_namespace *ns) HWJS_SUSPENDS;17DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))18extern struct ns_common *from_mnt_ns(struct mnt_namespace *);19 20extern const struct file_operations proc_mounts_operations;21extern const struct file_operations proc_mountinfo_operations;22extern const struct file_operations proc_mountstats_operations;23 24#endif25#endif26