aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
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 /fs/proc/generic.c
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 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 1c07cadeb8db..5f6f6c38701f 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -498,6 +498,19 @@ out:
498 return NULL; 498 return NULL;
499} 499}
500EXPORT_SYMBOL(proc_create_data); 500EXPORT_SYMBOL(proc_create_data);
501
502void proc_set_size(struct proc_dir_entry *de, loff_t size)
503{
504 de->size = size;
505}
506EXPORT_SYMBOL(proc_set_size);
507
508void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid)
509{
510 de->uid = uid;
511 de->gid = gid;
512}
513EXPORT_SYMBOL(proc_set_user);
501 514
502static void free_proc_entry(struct proc_dir_entry *de) 515static void free_proc_entry(struct proc_dir_entry *de)
503{ 516{