diff options
Diffstat (limited to 'fs/proc/internal.h')
| -rw-r--r-- | fs/proc/internal.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 0502f17b860d..987c773dbb20 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
| @@ -28,6 +28,7 @@ do { \ | |||
| 28 | (vmi)->largest_chunk = 0; \ | 28 | (vmi)->largest_chunk = 0; \ |
| 29 | } while(0) | 29 | } while(0) |
| 30 | 30 | ||
| 31 | extern int nommu_vma_show(struct seq_file *, struct vm_area_struct *); | ||
| 31 | #endif | 32 | #endif |
| 32 | 33 | ||
| 33 | extern void create_seq_entry(char *name, mode_t mode, const struct file_operations *f); | 34 | extern void create_seq_entry(char *name, mode_t mode, const struct file_operations *f); |
| @@ -37,16 +38,30 @@ extern int proc_tgid_stat(struct task_struct *, char *); | |||
| 37 | extern int proc_pid_status(struct task_struct *, char *); | 38 | extern int proc_pid_status(struct task_struct *, char *); |
| 38 | extern int proc_pid_statm(struct task_struct *, char *); | 39 | extern int proc_pid_statm(struct task_struct *, char *); |
| 39 | 40 | ||
| 41 | extern struct file_operations proc_maps_operations; | ||
| 42 | extern struct file_operations proc_numa_maps_operations; | ||
| 43 | extern struct file_operations proc_smaps_operations; | ||
| 44 | |||
| 45 | extern struct file_operations proc_maps_operations; | ||
| 46 | extern struct file_operations proc_numa_maps_operations; | ||
| 47 | extern struct file_operations proc_smaps_operations; | ||
| 48 | |||
| 49 | |||
| 40 | void free_proc_entry(struct proc_dir_entry *de); | 50 | void free_proc_entry(struct proc_dir_entry *de); |
| 41 | 51 | ||
| 42 | int proc_init_inodecache(void); | 52 | int proc_init_inodecache(void); |
| 43 | 53 | ||
| 44 | static inline struct task_struct *proc_task(struct inode *inode) | 54 | static inline struct pid *proc_pid(struct inode *inode) |
| 55 | { | ||
| 56 | return PROC_I(inode)->pid; | ||
| 57 | } | ||
| 58 | |||
| 59 | static inline struct task_struct *get_proc_task(struct inode *inode) | ||
| 45 | { | 60 | { |
| 46 | return PROC_I(inode)->task; | 61 | return get_pid_task(proc_pid(inode), PIDTYPE_PID); |
| 47 | } | 62 | } |
| 48 | 63 | ||
| 49 | static inline int proc_type(struct inode *inode) | 64 | static inline int proc_fd(struct inode *inode) |
| 50 | { | 65 | { |
| 51 | return PROC_I(inode)->type; | 66 | return PROC_I(inode)->fd; |
| 52 | } | 67 | } |
