X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fproc_fs.h;h=0713dc55528d46cdad5c5080d87878bf3469fc21;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=0c4d760556f03e8445a84c3c6b7a2f057951cd09;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 0c4d76055..0713dc555 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -1,6 +1,7 @@ #ifndef _LINUX_PROC_FS_H #define _LINUX_PROC_FS_H +#include #include #include #include @@ -100,8 +101,9 @@ extern void proc_misc_init(void); struct mm_struct; -void proc_flush_task(struct task_struct *task); struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *); +struct dentry *proc_pid_unhash(struct task_struct *p); +void proc_pid_flush(struct dentry *proc_dentry); int proc_pid_readdir(struct file * filp, void * dirent, filldir_t filldir); unsigned long task_vsize(struct mm_struct *); int task_statm(struct mm_struct *, int *, int *, int *, int *); @@ -211,7 +213,8 @@ static inline void proc_net_remove(const char *name) #define proc_net_create(name, mode, info) ({ (void)(mode), NULL; }) static inline void proc_net_remove(const char *name) {} -static inline void proc_flush_task(struct task_struct *task) { } +static inline struct dentry *proc_pid_unhash(struct task_struct *p) { return NULL; } +static inline void proc_pid_flush(struct dentry *proc_dentry) { } static inline struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, struct proc_dir_entry *parent) { return NULL; } @@ -247,9 +250,9 @@ extern void kclist_add(struct kcore_list *, void *, size_t); #endif struct proc_inode { - struct pid *pid; + struct task_struct *task; + int type; int vx_flags; - int fd; union { int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **); int (*proc_read)(struct task_struct *task, char *page); @@ -269,10 +272,4 @@ static inline struct proc_dir_entry *PDE(const struct inode *inode) return PROC_I(inode)->pde; } -struct proc_maps_private { - struct pid *pid; - struct task_struct *task; - struct vm_area_struct *tail_vma; -}; - #endif /* _LINUX_PROC_FS_H */