diff options
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 20741f668f7b..1ff461672060 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -125,7 +125,8 @@ extern struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, | |||
125 | extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent); | 125 | extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent); |
126 | 126 | ||
127 | extern struct vfsmount *proc_mnt; | 127 | extern struct vfsmount *proc_mnt; |
128 | extern int proc_fill_super(struct super_block *,void *,int); | 128 | struct pid_namespace; |
129 | extern int proc_fill_super(struct super_block *); | ||
129 | extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); | 130 | extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); |
130 | 131 | ||
131 | /* | 132 | /* |
@@ -142,6 +143,9 @@ extern const struct file_operations proc_kcore_operations; | |||
142 | extern const struct file_operations proc_kmsg_operations; | 143 | extern const struct file_operations proc_kmsg_operations; |
143 | extern const struct file_operations ppc_htab_operations; | 144 | extern const struct file_operations ppc_htab_operations; |
144 | 145 | ||
146 | extern int pid_ns_prepare_proc(struct pid_namespace *ns); | ||
147 | extern void pid_ns_release_proc(struct pid_namespace *ns); | ||
148 | |||
145 | /* | 149 | /* |
146 | * proc_tty.c | 150 | * proc_tty.c |
147 | */ | 151 | */ |
@@ -207,7 +211,9 @@ extern void proc_net_remove(struct net *net, const char *name); | |||
207 | #define proc_net_create(net, name, mode, info) ({ (void)(mode), NULL; }) | 211 | #define proc_net_create(net, name, mode, info) ({ (void)(mode), NULL; }) |
208 | static inline void proc_net_remove(struct net *net, const char *name) {} | 212 | static inline void proc_net_remove(struct net *net, const char *name) {} |
209 | 213 | ||
210 | static inline void proc_flush_task(struct task_struct *task) { } | 214 | static inline void proc_flush_task(struct task_struct *task) |
215 | { | ||
216 | } | ||
211 | 217 | ||
212 | static inline struct proc_dir_entry *create_proc_entry(const char *name, | 218 | static inline struct proc_dir_entry *create_proc_entry(const char *name, |
213 | mode_t mode, struct proc_dir_entry *parent) { return NULL; } | 219 | mode_t mode, struct proc_dir_entry *parent) { return NULL; } |
@@ -232,6 +238,15 @@ static inline void proc_tty_unregister_driver(struct tty_driver *driver) {}; | |||
232 | 238 | ||
233 | extern struct proc_dir_entry proc_root; | 239 | extern struct proc_dir_entry proc_root; |
234 | 240 | ||
241 | static inline int pid_ns_prepare_proc(struct pid_namespace *ns) | ||
242 | { | ||
243 | return 0; | ||
244 | } | ||
245 | |||
246 | static inline void pid_ns_release_proc(struct pid_namespace *ns) | ||
247 | { | ||
248 | } | ||
249 | |||
235 | #endif /* CONFIG_PROC_FS */ | 250 | #endif /* CONFIG_PROC_FS */ |
236 | 251 | ||
237 | #if !defined(CONFIG_PROC_KCORE) | 252 | #if !defined(CONFIG_PROC_KCORE) |