Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kirill Korotaev | 6b3286e | 2006-12-08 02:37:56 -0800 | [diff] [blame] | 2 | #ifndef _NAMESPACE_H_ |
| 3 | #define _NAMESPACE_H_ |
| 4 | #ifdef __KERNEL__ |
| 5 | |
Al Viro | 0226f49 | 2011-12-06 12:21:54 -0500 | [diff] [blame] | 6 | struct mnt_namespace; |
Al Viro | 5ad4e53 | 2009-03-29 19:50:06 -0400 | [diff] [blame] | 7 | struct fs_struct; |
Eric W. Biederman | 771b137 | 2012-07-26 21:08:32 -0700 | [diff] [blame] | 8 | struct user_namespace; |
Al Viro | 5ad4e53 | 2009-03-29 19:50:06 -0400 | [diff] [blame] | 9 | |
Eric W. Biederman | 213dd26 | 2007-07-15 23:41:15 -0700 | [diff] [blame] | 10 | extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, |
Eric W. Biederman | 771b137 | 2012-07-26 21:08:32 -0700 | [diff] [blame] | 11 | struct user_namespace *, struct fs_struct *); |
Trond Myklebust | 616511d | 2009-06-22 15:09:13 -0400 | [diff] [blame] | 12 | extern void put_mnt_ns(struct mnt_namespace *ns); |
Kirill Korotaev | 6b3286e | 2006-12-08 02:37:56 -0800 | [diff] [blame] | 13 | |
Al Viro | 0226f49 | 2011-12-06 12:21:54 -0500 | [diff] [blame] | 14 | extern const struct file_operations proc_mounts_operations; |
| 15 | extern const struct file_operations proc_mountinfo_operations; |
| 16 | extern const struct file_operations proc_mountstats_operations; |
Miklos Szeredi | a1a2c40 | 2008-03-27 13:06:24 +0100 | [diff] [blame] | 17 | |
Kirill Korotaev | 6b3286e | 2006-12-08 02:37:56 -0800 | [diff] [blame] | 18 | #endif |
| 19 | #endif |