Skip to content
  • Joel Becker's avatar
    [PATCH] configfs: Convenience macros for attribute definition. · ecb3d28c
    Joel Becker authored
    
    
    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: default avatarJoel Becker <joel.becker@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
    ecb3d28c