aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r--fs/proc/internal.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 3ab6d14e71c5..7da13e49128a 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -52,7 +52,6 @@ struct proc_dir_entry {
52 52
53union proc_op { 53union proc_op {
54 int (*proc_get_link)(struct dentry *, struct path *); 54 int (*proc_get_link)(struct dentry *, struct path *);
55 int (*proc_read)(struct task_struct *task, char *page);
56 int (*proc_show)(struct seq_file *m, 55 int (*proc_show)(struct seq_file *m,
57 struct pid_namespace *ns, struct pid *pid, 56 struct pid_namespace *ns, struct pid *pid,
58 struct task_struct *task); 57 struct task_struct *task);
@@ -112,10 +111,10 @@ static inline int task_dumpable(struct task_struct *task)
112 return 0; 111 return 0;
113} 112}
114 113
115static inline unsigned name_to_int(struct dentry *dentry) 114static inline unsigned name_to_int(const struct qstr *qstr)
116{ 115{
117 const char *name = dentry->d_name.name; 116 const char *name = qstr->name;
118 int len = dentry->d_name.len; 117 int len = qstr->len;
119 unsigned n = 0; 118 unsigned n = 0;
120 119
121 if (len > 1 && *name == '0') 120 if (len > 1 && *name == '0')
@@ -178,8 +177,6 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i
178/* 177/*
179 * generic.c 178 * generic.c
180 */ 179 */
181extern spinlock_t proc_subdir_lock;
182
183extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); 180extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int);
184extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *, 181extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *,
185 struct dentry *); 182 struct dentry *);
@@ -234,6 +231,12 @@ static inline int proc_net_init(void) { return 0; }
234extern int proc_setup_self(struct super_block *); 231extern int proc_setup_self(struct super_block *);
235 232
236/* 233/*
234 * proc_thread_self.c
235 */
236extern int proc_setup_thread_self(struct super_block *);
237extern void proc_thread_self_init(void);
238
239/*
237 * proc_sysctl.c 240 * proc_sysctl.c
238 */ 241 */
239#ifdef CONFIG_PROC_SYSCTL 242#ifdef CONFIG_PROC_SYSCTL