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.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 5810d28fbed9..57f70bc8b24b 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -4,6 +4,7 @@
4#include <linux/slab.h> 4#include <linux/slab.h>
5#include <linux/fs.h> 5#include <linux/fs.h>
6#include <linux/spinlock.h> 6#include <linux/spinlock.h>
7#include <linux/magic.h>
7#include <asm/atomic.h> 8#include <asm/atomic.h>
8 9
9/* 10/*
@@ -24,8 +25,6 @@ enum {
24 PROC_ROOT_INO = 1, 25 PROC_ROOT_INO = 1,
25}; 26};
26 27
27#define PROC_SUPER_MAGIC 0x9fa0
28
29/* 28/*
30 * This is not completely implemented yet. The idea is to 29 * This is not completely implemented yet. The idea is to
31 * create an in-memory tree (like the actual /proc filesystem 30 * create an in-memory tree (like the actual /proc filesystem
@@ -99,9 +98,8 @@ extern void proc_misc_init(void);
99 98
100struct mm_struct; 99struct mm_struct;
101 100
101void proc_flush_task(struct task_struct *task);
102struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *); 102struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *);
103struct dentry *proc_pid_unhash(struct task_struct *p);
104void proc_pid_flush(struct dentry *proc_dentry);
105int proc_pid_readdir(struct file * filp, void * dirent, filldir_t filldir); 103int proc_pid_readdir(struct file * filp, void * dirent, filldir_t filldir);
106unsigned long task_vsize(struct mm_struct *); 104unsigned long task_vsize(struct mm_struct *);
107int task_statm(struct mm_struct *, int *, int *, int *, int *); 105int task_statm(struct mm_struct *, int *, int *, int *, int *);
@@ -211,8 +209,7 @@ static inline void proc_net_remove(const char *name)
211#define proc_net_create(name, mode, info) ({ (void)(mode), NULL; }) 209#define proc_net_create(name, mode, info) ({ (void)(mode), NULL; })
212static inline void proc_net_remove(const char *name) {} 210static inline void proc_net_remove(const char *name) {}
213 211
214static inline struct dentry *proc_pid_unhash(struct task_struct *p) { return NULL; } 212static inline void proc_flush_task(struct task_struct *task) { }
215static inline void proc_pid_flush(struct dentry *proc_dentry) { }
216 213
217static inline struct proc_dir_entry *create_proc_entry(const char *name, 214static inline struct proc_dir_entry *create_proc_entry(const char *name,
218 mode_t mode, struct proc_dir_entry *parent) { return NULL; } 215 mode_t mode, struct proc_dir_entry *parent) { return NULL; }
@@ -248,8 +245,8 @@ extern void kclist_add(struct kcore_list *, void *, size_t);
248#endif 245#endif
249 246
250struct proc_inode { 247struct proc_inode {
251 struct task_struct *task; 248 struct pid *pid;
252 int type; 249 int fd;
253 union { 250 union {
254 int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **); 251 int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **);
255 int (*proc_read)(struct task_struct *task, char *page); 252 int (*proc_read)(struct task_struct *task, char *page);
@@ -268,4 +265,12 @@ static inline struct proc_dir_entry *PDE(const struct inode *inode)
268 return PROC_I(inode)->pde; 265 return PROC_I(inode)->pde;
269} 266}
270 267
268struct proc_maps_private {
269 struct pid *pid;
270 struct task_struct *task;
271#ifdef CONFIG_MMU
272 struct vm_area_struct *tail_vma;
273#endif
274};
275
271#endif /* _LINUX_PROC_FS_H */ 276#endif /* _LINUX_PROC_FS_H */