Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _NAMESPACE_H_ |
| 3 | #define _NAMESPACE_H_ |
| 4 | #ifdef __KERNEL__ |
| 5 | |
| 6 | struct mnt_namespace; |
| 7 | struct fs_struct; |
| 8 | struct user_namespace; |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 9 | struct ns_common; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 10 | |
| 11 | extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, |
| 12 | struct user_namespace *, struct fs_struct *); |
| 13 | extern void put_mnt_ns(struct mnt_namespace *ns); |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 14 | extern struct ns_common *from_mnt_ns(struct mnt_namespace *); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 15 | |
| 16 | extern const struct file_operations proc_mounts_operations; |
| 17 | extern const struct file_operations proc_mountinfo_operations; |
| 18 | extern const struct file_operations proc_mountstats_operations; |
| 19 | |
| 20 | #endif |
| 21 | #endif |