diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-07 13:19:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:01 -0400 |
commit | 3174c21b74b56c6a53fddd41a30fd6f757a32bd0 (patch) | |
tree | 2fc978162ecc591e3005afd820663c7c869999de /fs/proc | |
parent | 1c755af4df75996b0dd4b7e6cacaf9d57a6ef2ef (diff) |
Move junk from proc_fs.h to fs/proc/internal.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/internal.h | 25 | ||||
-rw-r--r-- | fs/proc/proc_devtree.c | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index f6db9618a888..753ca37002c8 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -92,3 +92,28 @@ struct pde_opener { | |||
92 | struct list_head lh; | 92 | struct list_head lh; |
93 | }; | 93 | }; |
94 | void pde_users_dec(struct proc_dir_entry *pde); | 94 | void pde_users_dec(struct proc_dir_entry *pde); |
95 | |||
96 | extern spinlock_t proc_subdir_lock; | ||
97 | |||
98 | struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *); | ||
99 | int proc_pid_readdir(struct file * filp, void * dirent, filldir_t filldir); | ||
100 | unsigned long task_vsize(struct mm_struct *); | ||
101 | int task_statm(struct mm_struct *, int *, int *, int *, int *); | ||
102 | void task_mem(struct seq_file *, struct mm_struct *); | ||
103 | |||
104 | struct proc_dir_entry *de_get(struct proc_dir_entry *de); | ||
105 | void de_put(struct proc_dir_entry *de); | ||
106 | |||
107 | extern struct vfsmount *proc_mnt; | ||
108 | int proc_fill_super(struct super_block *); | ||
109 | struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); | ||
110 | |||
111 | /* | ||
112 | * These are generic /proc routines that use the internal | ||
113 | * "struct proc_dir_entry" tree to traverse the filesystem. | ||
114 | * | ||
115 | * The /proc root directory has extended versions to take care | ||
116 | * of the /proc/<pid> subdirectories. | ||
117 | */ | ||
118 | int proc_readdir(struct file *, void *, filldir_t); | ||
119 | struct dentry *proc_lookup(struct inode *, struct dentry *, struct nameidata *); | ||
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index de2bba5a3440..fc6c3025befd 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/string.h> | 11 | #include <linux/string.h> |
12 | #include <asm/prom.h> | 12 | #include <asm/prom.h> |
13 | #include <asm/uaccess.h> | 13 | #include <asm/uaccess.h> |
14 | #include "internal.h" | ||
14 | 15 | ||
15 | #ifndef HAVE_ARCH_DEVTREE_FIXUPS | 16 | #ifndef HAVE_ARCH_DEVTREE_FIXUPS |
16 | static inline void set_node_proc_entry(struct device_node *np, | 17 | static inline void set_node_proc_entry(struct device_node *np, |