]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] configfs: Convenience macros for attribute definition.
authorJoel Becker <joel.becker@oracle.com>
Thu, 19 Jun 2008 02:29:05 +0000 (19:29 -0700)
committerMark Fasheh <mfasheh@suse.com>
Thu, 31 Jul 2008 23:21:13 +0000 (16:21 -0700)
commitecb3d28c7edd58b54f16838c434b342ba9195bec
tree2babdc068dde924a905b0b25e673be0ca7a7dccd
parent70526b67443a980d5029d9cf06903bef731a4e96
[PATCH] configfs: Convenience macros for attribute definition.

Sysfs has the _ATTR() and _ATTR_RO() macros to make defining extended
form attributes easier.  configfs should have something similiar.

- _CONFIGFS_ATTR() and _CONFIGFS_ATTR_RO() are the counterparts to the
  sysfs macros.
- CONFIGFS_ATTR_STRUCT() creates the extended form attribute structure.
- CONFIGFS_ATTR_OPS() defines the show_attribute()/store_attribute()
  operations that call the show()/store() operations of the extended
  form configfs_attributes.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Documentation/filesystems/configfs/configfs.txt
Documentation/filesystems/configfs/configfs_example_explicit.c [moved from Documentation/filesystems/configfs/configfs_example.c with 96% similarity]
Documentation/filesystems/configfs/configfs_example_macros.c [new file with mode: 0644]
include/linux/configfs.h