Go to the source code of this file.
|
#define | CONFIGFS_EATTR_STRUCT(_name, _item) |
|
#define | __CONFIGFS_EATTR(_name, _mode, _show, _store) |
|
#define | __CONFIGFS_EATTR_RO(_name, _show) |
|
#define | CONFIGFS_EATTR_OPS_TO_FUNC(_name, _item, _item_member) |
|
#define | CONFIGFS_EATTR_OPS_SHOW(_name, _item) |
|
#define | CONFIGFS_EATTR_OPS_STORE(_name, _item) |
|
#define | CONFIGFS_EATTR_OPS(_name, _item, _item_member) |
|
#define | CONFIGFS_EATTR_OPS_RO(_name, _item, _item_member) |
|
#define __CONFIGFS_EATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store |
|
) |
| |
Value:{ \
.attr = { \
.ca_mode = _mode, \
}, \
.show = _show, \
.store = _store, \
}
Definition at line 68 of file configfs_macros.h.
#define __CONFIGFS_EATTR_RO |
( |
|
_name, |
|
|
|
_show |
|
) |
| |
Value:{ \
.attr = { \
.ca_mode = 0444, \
}, \
.show = _show, \
}
Definition at line 79 of file configfs_macros.h.
#define CONFIGFS_EATTR_OPS |
( |
|
_name, |
|
|
|
_item, |
|
|
|
_item_member |
|
) |
| |
Value:
CONFIGFS_EATTR_OPS_SHOW(_name, _item); \
CONFIGFS_EATTR_OPS_STORE(_name, _item);
Definition at line 138 of file configfs_macros.h.
#define CONFIGFS_EATTR_OPS_RO |
( |
|
_name, |
|
|
|
_item, |
|
|
|
_item_member |
|
) |
| |
#define CONFIGFS_EATTR_OPS_SHOW |
( |
|
_name, |
|
|
|
_item |
|
) |
| |
Value:
struct _name##_attribute * _name##_attr = \
container_of(
attr,
struct _name##_attribute,
attr);
\
if (_name##_attr->show) \
ret = _name##_attr->show(_item,
page); \
}
Definition at line 108 of file configfs_macros.h.
#define CONFIGFS_EATTR_OPS_STORE |
( |
|
_name, |
|
|
|
_item |
|
) |
| |
Value:
struct _name##_attribute * _name##_attr = \
container_of(
attr,
struct _name##_attribute,
attr);
\
if (_name##_attr->store) \
ret = _name##_attr->store(_item,
page,
count); \
}
Definition at line 123 of file configfs_macros.h.
#define CONFIGFS_EATTR_OPS_TO_FUNC |
( |
|
_name, |
|
|
|
_item, |
|
|
|
_item_member |
|
) |
| |
#define CONFIGFS_EATTR_STRUCT |
( |
|
_name, |
|
|
|
_item |
|
) |
| |