Blame view

include/linux/mnt_namespace.h 927 Bytes
6b3286ed1   Kirill Korotaev   [PATCH] rename st...
1
2
3
  #ifndef _NAMESPACE_H_
  #define _NAMESPACE_H_
  #ifdef __KERNEL__
b43f3cbd2   Alexey Dobriyan   headers: mnt_name...
4
  #include <linux/path.h>
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
5
  #include <linux/seq_file.h>
b43f3cbd2   Alexey Dobriyan   headers: mnt_name...
6
  #include <linux/wait.h>
6b3286ed1   Kirill Korotaev   [PATCH] rename st...
7
8
9
10
11
12
13
14
  
  struct mnt_namespace {
  	atomic_t		count;
  	struct vfsmount *	root;
  	struct list_head	list;
  	wait_queue_head_t poll;
  	int event;
  };
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
15
16
17
18
  struct proc_mounts {
  	struct seq_file m; /* must be the first element */
  	struct mnt_namespace *ns;
  	struct path root;
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
19
  };
5ad4e53bd   Al Viro   Get rid of indire...
20
  struct fs_struct;
a2770d86b   Linus Torvalds   Revert "fix misme...
21
  extern struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt);
213dd266d   Eric W. Biederman   namespace: ensure...
22
  extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
6b3286ed1   Kirill Korotaev   [PATCH] rename st...
23
  		struct fs_struct *);
616511d03   Trond Myklebust   VFS: Uninline the...
24
  extern void put_mnt_ns(struct mnt_namespace *ns);
6b3286ed1   Kirill Korotaev   [PATCH] rename st...
25
26
27
28
  static inline void get_mnt_ns(struct mnt_namespace *ns)
  {
  	atomic_inc(&ns->count);
  }
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
29
  extern const struct seq_operations mounts_op;
2d4d4864a   Ram Pai   [patch 6/7] vfs: ...
30
  extern const struct seq_operations mountinfo_op;
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
31
  extern const struct seq_operations mountstats_op;
9f5596af4   Al Viro   take check for ne...
32
  extern int mnt_had_events(struct proc_mounts *);
a1a2c409b   Miklos Szeredi   [patch 5/7] vfs: ...
33

6b3286ed1   Kirill Korotaev   [PATCH] rename st...
34
35
  #endif
  #endif