xref: /OK3568_Linux_fs/kernel/include/linux/mnt_namespace.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _NAMESPACE_H_
3*4882a593Smuzhiyun #define _NAMESPACE_H_
4*4882a593Smuzhiyun #ifdef __KERNEL__
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun struct mnt_namespace;
7*4882a593Smuzhiyun struct fs_struct;
8*4882a593Smuzhiyun struct user_namespace;
9*4882a593Smuzhiyun struct ns_common;
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
12*4882a593Smuzhiyun 		struct user_namespace *, struct fs_struct *);
13*4882a593Smuzhiyun extern void put_mnt_ns(struct mnt_namespace *ns);
14*4882a593Smuzhiyun extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun extern const struct file_operations proc_mounts_operations;
17*4882a593Smuzhiyun extern const struct file_operations proc_mountinfo_operations;
18*4882a593Smuzhiyun extern const struct file_operations proc_mountstats_operations;
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif
21*4882a593Smuzhiyun #endif
22