1. 01 8月, 2008 1 次提交
    • J
      [PATCH] configfs: Convenience macros for attribute definition. · ecb3d28c
      Joel Becker 提交于
      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: NJoel Becker <joel.becker@oracle.com>
      Signed-off-by: NMark Fasheh <mfasheh@suse.com>
      ecb3d28c
  2. 18 7月, 2008 2 次提交
  3. 15 7月, 2008 1 次提交
    • J
      configfs: Allow ->make_item() and ->make_group() to return detailed errors. · 11c3b792
      Joel Becker 提交于
      The configfs operations ->make_item() and ->make_group() currently
      return a new item/group.  A return of NULL signifies an error.  Because
      of this, -ENOMEM is the only return code bubbled up the stack.
      
      Multiple folks have requested the ability to return specific error codes
      when these operations fail.  This patch adds that ability by changing the
      ->make_item/group() ops to return an int.
      
      Also updated are the in-kernel users of configfs.
      Signed-off-by: NJoel Becker <joel.becker@oracle.com>
      11c3b792
  4. 20 7月, 2007 1 次提交
  5. 11 7月, 2007 1 次提交
  6. 30 6月, 2006 1 次提交
  7. 04 2月, 2006 1 次提交
  8. 04 1月, 2006 1 次提交