diff options
| author | Ingo Molnar <mingo@elte.hu> | 2011-05-26 07:51:31 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2011-05-26 07:51:35 -0400 |
| commit | de66ee979d0ea45171cc2501750e9f9f22f5a690 (patch) | |
| tree | 5ab1a5c6b596b9b786902fb380274e1e1f4ceb13 /include/linux/proc_fs.h | |
| parent | 916f676f8dc016103f983c7ec54c18ecdbb6e349 (diff) | |
| parent | 4db70f73e56961b9bcdfd0c36c62847a18b7dbb5 (diff) | |
Merge branch 'linus' into x86/urgent
Merge reason: we want to queue up a dependent patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/proc_fs.h')
| -rw-r--r-- | include/linux/proc_fs.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index eaf4350c0f90..648c9c58add7 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
| @@ -179,6 +179,8 @@ extern void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file); | |||
| 179 | extern struct file *get_mm_exe_file(struct mm_struct *mm); | 179 | extern struct file *get_mm_exe_file(struct mm_struct *mm); |
| 180 | extern void dup_mm_exe_file(struct mm_struct *oldmm, struct mm_struct *newmm); | 180 | extern void dup_mm_exe_file(struct mm_struct *oldmm, struct mm_struct *newmm); |
| 181 | 181 | ||
| 182 | extern struct file *proc_ns_fget(int fd); | ||
| 183 | |||
| 182 | #else | 184 | #else |
| 183 | 185 | ||
| 184 | #define proc_net_fops_create(net, name, mode, fops) ({ (void)(mode), NULL; }) | 186 | #define proc_net_fops_create(net, name, mode, fops) ({ (void)(mode), NULL; }) |
| @@ -241,6 +243,11 @@ static inline void dup_mm_exe_file(struct mm_struct *oldmm, | |||
| 241 | struct mm_struct *newmm) | 243 | struct mm_struct *newmm) |
| 242 | {} | 244 | {} |
| 243 | 245 | ||
| 246 | static inline struct file *proc_ns_fget(int fd) | ||
| 247 | { | ||
| 248 | return ERR_PTR(-EINVAL); | ||
| 249 | } | ||
| 250 | |||
| 244 | #endif /* CONFIG_PROC_FS */ | 251 | #endif /* CONFIG_PROC_FS */ |
| 245 | 252 | ||
| 246 | #if !defined(CONFIG_PROC_KCORE) | 253 | #if !defined(CONFIG_PROC_KCORE) |
| @@ -252,6 +259,18 @@ kclist_add(struct kcore_list *new, void *addr, size_t size, int type) | |||
| 252 | extern void kclist_add(struct kcore_list *, void *, size_t, int type); | 259 | extern void kclist_add(struct kcore_list *, void *, size_t, int type); |
| 253 | #endif | 260 | #endif |
| 254 | 261 | ||
| 262 | struct nsproxy; | ||
| 263 | struct proc_ns_operations { | ||
| 264 | const char *name; | ||
| 265 | int type; | ||
| 266 | void *(*get)(struct task_struct *task); | ||
| 267 | void (*put)(void *ns); | ||
| 268 | int (*install)(struct nsproxy *nsproxy, void *ns); | ||
| 269 | }; | ||
| 270 | extern const struct proc_ns_operations netns_operations; | ||
| 271 | extern const struct proc_ns_operations utsns_operations; | ||
| 272 | extern const struct proc_ns_operations ipcns_operations; | ||
| 273 | |||
| 255 | union proc_op { | 274 | union proc_op { |
| 256 | int (*proc_get_link)(struct inode *, struct path *); | 275 | int (*proc_get_link)(struct inode *, struct path *); |
| 257 | int (*proc_read)(struct task_struct *task, char *page); | 276 | int (*proc_read)(struct task_struct *task, char *page); |
| @@ -270,6 +289,8 @@ struct proc_inode { | |||
| 270 | struct proc_dir_entry *pde; | 289 | struct proc_dir_entry *pde; |
| 271 | struct ctl_table_header *sysctl; | 290 | struct ctl_table_header *sysctl; |
| 272 | struct ctl_table *sysctl_entry; | 291 | struct ctl_table *sysctl_entry; |
| 292 | void *ns; | ||
| 293 | const struct proc_ns_operations *ns_ops; | ||
| 273 | struct inode vfs_inode; | 294 | struct inode vfs_inode; |
| 274 | }; | 295 | }; |
| 275 | 296 | ||
| @@ -288,12 +309,4 @@ static inline struct net *PDE_NET(struct proc_dir_entry *pde) | |||
| 288 | return pde->parent->data; | 309 | return pde->parent->data; |
| 289 | } | 310 | } |
| 290 | 311 | ||
| 291 | struct proc_maps_private { | ||
| 292 | struct pid *pid; | ||
| 293 | struct task_struct *task; | ||
| 294 | #ifdef CONFIG_MMU | ||
| 295 | struct vm_area_struct *tail_vma; | ||
| 296 | #endif | ||
| 297 | }; | ||
| 298 | |||
| 299 | #endif /* _LINUX_PROC_FS_H */ | 312 | #endif /* _LINUX_PROC_FS_H */ |
