mnt_namespace.h 617 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NAMESPACE_H_
  3. #define _NAMESPACE_H_
  4. #ifdef __KERNEL__
  5. struct mnt_namespace;
  6. struct fs_struct;
  7. struct user_namespace;
  8. struct vfsmount;
  9. extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
  10. struct user_namespace *, struct fs_struct *);
  11. extern void put_mnt_ns(struct mnt_namespace *ns);
  12. extern int is_current_mnt_ns(struct vfsmount *mnt);
  13. extern const struct file_operations proc_mounts_operations;
  14. extern const struct file_operations proc_mountinfo_operations;
  15. extern const struct file_operations proc_mountstats_operations;
  16. #endif
  17. #endif