diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 03:36:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:56 -0500 |
commit | d161a13f974c72fd7ff0069d39a3ae57cb5694ff (patch) | |
tree | 0c6d6237b3eafbe362798d7727a02f509fd72ca9 /include/linux/proc_fs.h | |
parent | 587a1f1659e8b330b8738ef4901832a2b63f0bed (diff) |
switch procfs to umode_t use
both proc_dir_entry ->mode and populating functions
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 643b96c7a94f..6d9e575519cc 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -50,7 +50,7 @@ typedef int (write_proc_t)(struct file *file, const char __user *buffer, | |||
50 | 50 | ||
51 | struct proc_dir_entry { | 51 | struct proc_dir_entry { |
52 | unsigned int low_ino; | 52 | unsigned int low_ino; |
53 | mode_t mode; | 53 | umode_t mode; |
54 | nlink_t nlink; | 54 | nlink_t nlink; |
55 | uid_t uid; | 55 | uid_t uid; |
56 | gid_t gid; | 56 | gid_t gid; |
@@ -106,9 +106,9 @@ extern void proc_root_init(void); | |||
106 | 106 | ||
107 | void proc_flush_task(struct task_struct *task); | 107 | void proc_flush_task(struct task_struct *task); |
108 | 108 | ||
109 | extern struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, | 109 | extern struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, |
110 | struct proc_dir_entry *parent); | 110 | struct proc_dir_entry *parent); |
111 | struct proc_dir_entry *proc_create_data(const char *name, mode_t mode, | 111 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, |
112 | struct proc_dir_entry *parent, | 112 | struct proc_dir_entry *parent, |
113 | const struct file_operations *proc_fops, | 113 | const struct file_operations *proc_fops, |
114 | void *data); | 114 | void *data); |
@@ -146,17 +146,17 @@ extern void proc_device_tree_update_prop(struct proc_dir_entry *pde, | |||
146 | extern struct proc_dir_entry *proc_symlink(const char *, | 146 | extern struct proc_dir_entry *proc_symlink(const char *, |
147 | struct proc_dir_entry *, const char *); | 147 | struct proc_dir_entry *, const char *); |
148 | extern struct proc_dir_entry *proc_mkdir(const char *,struct proc_dir_entry *); | 148 | extern struct proc_dir_entry *proc_mkdir(const char *,struct proc_dir_entry *); |
149 | extern struct proc_dir_entry *proc_mkdir_mode(const char *name, mode_t mode, | 149 | extern struct proc_dir_entry *proc_mkdir_mode(const char *name, umode_t mode, |
150 | struct proc_dir_entry *parent); | 150 | struct proc_dir_entry *parent); |
151 | 151 | ||
152 | static inline struct proc_dir_entry *proc_create(const char *name, mode_t mode, | 152 | static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode, |
153 | struct proc_dir_entry *parent, const struct file_operations *proc_fops) | 153 | struct proc_dir_entry *parent, const struct file_operations *proc_fops) |
154 | { | 154 | { |
155 | return proc_create_data(name, mode, parent, proc_fops, NULL); | 155 | return proc_create_data(name, mode, parent, proc_fops, NULL); |
156 | } | 156 | } |
157 | 157 | ||
158 | static inline struct proc_dir_entry *create_proc_read_entry(const char *name, | 158 | static inline struct proc_dir_entry *create_proc_read_entry(const char *name, |
159 | mode_t mode, struct proc_dir_entry *base, | 159 | umode_t mode, struct proc_dir_entry *base, |
160 | read_proc_t *read_proc, void * data) | 160 | read_proc_t *read_proc, void * data) |
161 | { | 161 | { |
162 | struct proc_dir_entry *res=create_proc_entry(name,mode,base); | 162 | struct proc_dir_entry *res=create_proc_entry(name,mode,base); |
@@ -168,7 +168,7 @@ static inline struct proc_dir_entry *create_proc_read_entry(const char *name, | |||
168 | } | 168 | } |
169 | 169 | ||
170 | extern struct proc_dir_entry *proc_net_fops_create(struct net *net, | 170 | extern struct proc_dir_entry *proc_net_fops_create(struct net *net, |
171 | const char *name, mode_t mode, const struct file_operations *fops); | 171 | const char *name, umode_t mode, const struct file_operations *fops); |
172 | extern void proc_net_remove(struct net *net, const char *name); | 172 | extern void proc_net_remove(struct net *net, const char *name); |
173 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, | 173 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, |
174 | struct proc_dir_entry *parent); | 174 | struct proc_dir_entry *parent); |
@@ -185,15 +185,15 @@ static inline void proc_flush_task(struct task_struct *task) | |||
185 | } | 185 | } |
186 | 186 | ||
187 | static inline struct proc_dir_entry *create_proc_entry(const char *name, | 187 | static inline struct proc_dir_entry *create_proc_entry(const char *name, |
188 | mode_t mode, struct proc_dir_entry *parent) { return NULL; } | 188 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } |
189 | static inline struct proc_dir_entry *proc_create(const char *name, | 189 | static inline struct proc_dir_entry *proc_create(const char *name, |
190 | mode_t mode, struct proc_dir_entry *parent, | 190 | umode_t mode, struct proc_dir_entry *parent, |
191 | const struct file_operations *proc_fops) | 191 | const struct file_operations *proc_fops) |
192 | { | 192 | { |
193 | return NULL; | 193 | return NULL; |
194 | } | 194 | } |
195 | static inline struct proc_dir_entry *proc_create_data(const char *name, | 195 | static inline struct proc_dir_entry *proc_create_data(const char *name, |
196 | mode_t mode, struct proc_dir_entry *parent, | 196 | umode_t mode, struct proc_dir_entry *parent, |
197 | const struct file_operations *proc_fops, void *data) | 197 | const struct file_operations *proc_fops, void *data) |
198 | { | 198 | { |
199 | return NULL; | 199 | return NULL; |
@@ -205,10 +205,10 @@ static inline struct proc_dir_entry *proc_symlink(const char *name, | |||
205 | static inline struct proc_dir_entry *proc_mkdir(const char *name, | 205 | static inline struct proc_dir_entry *proc_mkdir(const char *name, |
206 | struct proc_dir_entry *parent) {return NULL;} | 206 | struct proc_dir_entry *parent) {return NULL;} |
207 | static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, | 207 | static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, |
208 | mode_t mode, struct proc_dir_entry *parent) { return NULL; } | 208 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } |
209 | 209 | ||
210 | static inline struct proc_dir_entry *create_proc_read_entry(const char *name, | 210 | static inline struct proc_dir_entry *create_proc_read_entry(const char *name, |
211 | mode_t mode, struct proc_dir_entry *base, | 211 | umode_t mode, struct proc_dir_entry *base, |
212 | read_proc_t *read_proc, void * data) { return NULL; } | 212 | read_proc_t *read_proc, void * data) { return NULL; } |
213 | 213 | ||
214 | struct tty_driver; | 214 | struct tty_driver; |