Files

28 lines
799 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _NAMESPACE_H_
#define _NAMESPACE_H_
#ifdef __KERNEL__
2024-07-19 13:41:50 +02:00
#include <linux/cleanup.h>
#include <linux/err.h>
struct mnt_namespace;
2009-03-29 19:50:06 -04:00
struct fs_struct;
struct user_namespace;
2020-05-05 16:04:30 +02:00
struct ns_common;
2009-03-29 19:50:06 -04:00
2025-09-17 12:28:01 +02:00
extern struct mnt_namespace init_mnt_ns;
extern struct mnt_namespace *copy_mnt_ns(u64, struct mnt_namespace *,
struct user_namespace *, struct fs_struct *);
2009-06-22 15:09:13 -04:00
extern void put_mnt_ns(struct mnt_namespace *ns);
2024-07-19 13:41:50 +02:00
DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
2020-05-05 16:04:31 +02:00
extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
extern const struct file_operations proc_mounts_operations;
extern const struct file_operations proc_mountinfo_operations;
extern const struct file_operations proc_mountstats_operations;
#endif
#endif