OSDN Git Service

proc: Add proc_mkdir_data()
authorDavid Howells <dhowells@redhat.com>
Fri, 12 Apr 2013 01:48:30 +0000 (02:48 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 1 May 2013 21:29:41 +0000 (17:29 -0400)
commit270b5ac2151707c25d3327722c5badfbd95945bc
tree27e07d1c8f531f8a817071bdb7f8c2ae5282886c
parent34db8aaf0f95ffac407d39da22972b38da631db4
proc: Add proc_mkdir_data()

Add proc_mkdir_data() to allow procfs directories to be created that are
annotated at the time of creation with private data rather than doing this
post-creation.  This means no access is then required to the proc_dir_entry
struct to set this.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: Neela Syam Kolli <megaraidlinux@lsi.com>
cc: Jerry Chuang <jerry-chuang@realtek.com>
cc: linux-scsi@vger.kernel.org
cc: devel@driverdev.osuosl.org
cc: linux-wireless@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/message/i2o/i2o_proc.c
drivers/scsi/megaraid.c
drivers/staging/rtl8192u/r8192U_core.c
fs/proc/generic.c
fs/reiserfs/procfs.c
include/linux/proc_fs.h