diff options
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index c03e8d3a3a5b..7838e5cfec14 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -61,6 +61,14 @@ extern const struct file_operations proc_pagemap_operations; | |||
61 | extern const struct file_operations proc_net_operations; | 61 | extern const struct file_operations proc_net_operations; |
62 | extern const struct inode_operations proc_net_inode_operations; | 62 | extern const struct inode_operations proc_net_inode_operations; |
63 | 63 | ||
64 | struct proc_maps_private { | ||
65 | struct pid *pid; | ||
66 | struct task_struct *task; | ||
67 | #ifdef CONFIG_MMU | ||
68 | struct vm_area_struct *tail_vma; | ||
69 | #endif | ||
70 | }; | ||
71 | |||
64 | void proc_init_inodecache(void); | 72 | void proc_init_inodecache(void); |
65 | 73 | ||
66 | static inline struct pid *proc_pid(struct inode *inode) | 74 | static inline struct pid *proc_pid(struct inode *inode) |
@@ -119,3 +127,21 @@ struct inode *proc_get_inode(struct super_block *, struct proc_dir_entry *); | |||
119 | */ | 127 | */ |
120 | int proc_readdir(struct file *, void *, filldir_t); | 128 | int proc_readdir(struct file *, void *, filldir_t); |
121 | struct dentry *proc_lookup(struct inode *, struct dentry *, struct nameidata *); | 129 | struct dentry *proc_lookup(struct inode *, struct dentry *, struct nameidata *); |
130 | |||
131 | |||
132 | |||
133 | /* Lookups */ | ||
134 | typedef struct dentry *instantiate_t(struct inode *, struct dentry *, | ||
135 | struct task_struct *, const void *); | ||
136 | int proc_fill_cache(struct file *filp, void *dirent, filldir_t filldir, | ||
137 | const char *name, int len, | ||
138 | instantiate_t instantiate, struct task_struct *task, const void *ptr); | ||
139 | int pid_revalidate(struct dentry *dentry, struct nameidata *nd); | ||
140 | struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *task); | ||
141 | extern const struct dentry_operations pid_dentry_operations; | ||
142 | int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat); | ||
143 | int proc_setattr(struct dentry *dentry, struct iattr *attr); | ||
144 | |||
145 | extern const struct inode_operations proc_ns_dir_inode_operations; | ||
146 | extern const struct file_operations proc_ns_dir_operations; | ||
147 | |||