aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-04-11 19:38:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-01 17:29:18 -0400
commit271a15eabe094538d958dc68ccfc9c36b699247a (patch)
tree586e33f88cece63828614b2a2f0e92007064f024 /include
parent2f96b8c1d5d492c1d0457b253015330f844136f6 (diff)
proc: Supply PDE attribute setting accessor functions
Supply accessor functions to set attributes in proc_dir_entry structs. The following are supplied: proc_set_size() and proc_set_user(). Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> cc: linuxppc-dev@lists.ozlabs.org cc: linux-media@vger.kernel.org cc: netdev@vger.kernel.org cc: linux-wireless@vger.kernel.org cc: linux-pci@vger.kernel.org cc: netfilter-devel@vger.kernel.org cc: alsa-devel@alsa-project.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/proc_fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 805edacfc2fc..28a4d7e78803 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -130,6 +130,9 @@ static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode,
130extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, 130extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name,
131 struct proc_dir_entry *parent); 131 struct proc_dir_entry *parent);
132 132
133extern void proc_set_size(struct proc_dir_entry *, loff_t);
134extern void proc_set_user(struct proc_dir_entry *, kuid_t, kgid_t);
135
133extern struct file *proc_ns_fget(int fd); 136extern struct file *proc_ns_fget(int fd);
134extern bool proc_ns_inode(struct inode *inode); 137extern bool proc_ns_inode(struct inode *inode);
135 138
@@ -158,6 +161,8 @@ static inline struct proc_dir_entry *proc_mkdir(const char *name,
158 struct proc_dir_entry *parent) {return NULL;} 161 struct proc_dir_entry *parent) {return NULL;}
159static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, 162static inline struct proc_dir_entry *proc_mkdir_mode(const char *name,
160 umode_t mode, struct proc_dir_entry *parent) { return NULL; } 163 umode_t mode, struct proc_dir_entry *parent) { return NULL; }
164static inline void proc_set_size(struct proc_dir_entry *de, loff_t size) {}
165static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {}
161 166
162struct tty_driver; 167struct tty_driver;
163static inline void proc_tty_register_driver(struct tty_driver *driver) {}; 168static inline void proc_tty_register_driver(struct tty_driver *driver) {};