aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/proc_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r--include/linux/proc_fs.h19
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,
125extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent); 125extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent);
126 126
127extern struct vfsmount *proc_mnt; 127extern struct vfsmount *proc_mnt;
128extern int proc_fill_super(struct super_block *,void *,int); 128struct pid_namespace;
129extern int proc_fill_super(struct super_block *);
129extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); 130extern 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;
142extern const struct file_operations proc_kmsg_operations; 143extern const struct file_operations proc_kmsg_operations;
143extern const struct file_operations ppc_htab_operations; 144extern const struct file_operations ppc_htab_operations;
144 145
146extern int pid_ns_prepare_proc(struct pid_namespace *ns);
147extern 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; })
208static inline void proc_net_remove(struct net *net, const char *name) {} 212static inline void proc_net_remove(struct net *net, const char *name) {}
209 213
210static inline void proc_flush_task(struct task_struct *task) { } 214static inline void proc_flush_task(struct task_struct *task)
215{
216}
211 217
212static inline struct proc_dir_entry *create_proc_entry(const char *name, 218static 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
233extern struct proc_dir_entry proc_root; 239extern struct proc_dir_entry proc_root;
234 240
241static inline int pid_ns_prepare_proc(struct pid_namespace *ns)
242{
243 return 0;
244}
245
246static 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)