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>
This commit is contained in:
@@ -139,7 +139,7 @@ static int __init zorro_proc_attach_device(unsigned int slot)
|
||||
&zorro_autocon[slot]);
|
||||
if (!entry)
|
||||
return -ENOMEM;
|
||||
entry->size = sizeof(struct zorro_dev);
|
||||
proc_set_size(entry, sizeof(struct zorro_dev));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user