blob: 8f882f5881e8797d72bd38c9e693899cc25d1d22 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _NAMESPACE_H_
3#define _NAMESPACE_H_
4#ifdef __KERNEL__
5
6struct mnt_namespace;
7struct fs_struct;
8struct user_namespace;
Olivier Deprez157378f2022-04-04 15:47:50 +02009struct ns_common;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000010
11extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
12 struct user_namespace *, struct fs_struct *);
13extern void put_mnt_ns(struct mnt_namespace *ns);
Olivier Deprez157378f2022-04-04 15:47:50 +020014extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000015
16extern const struct file_operations proc_mounts_operations;
17extern const struct file_operations proc_mountinfo_operations;
18extern const struct file_operations proc_mountstats_operations;
19
20#endif
21#endif