#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/atomic.h>
Go to the source code of this file.
#define __CONFIGFS_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store |
|
) |
| |
Value:{ \
.attr = { \
.ca_mode = _mode, \
}, \
.show = _show, \
.store = _store, \
}
Definition at line 153 of file configfs.h.
#define __CONFIGFS_ATTR_RO |
( |
|
_name, |
|
|
|
_show |
|
) |
| |
Value:{ \
.attr = { \
.ca_mode = 0444, \
}, \
.show = _show, \
}
Definition at line 164 of file configfs.h.
#define CONFIGFS_ATTR_OPS |
( |
|
_item | ) |
|
Value:
struct _item##_attribute *_item##_attr = \
container_of(
attr,
struct _item##_attribute,
attr);
\
if (_item##_attr->show) \
ret = _item##_attr->show(_item,
page); \
} \
struct _item##_attribute *_item##_attr = \
container_of(
attr,
struct _item##_attribute,
attr);
\
if (_item##_attr->store) \
ret = _item##_attr->store(_item,
page,
count); \
}
Definition at line 182 of file configfs.h.
#define CONFIGFS_ATTR_STRUCT |
( |
|
_item | ) |
|
Value:struct _item##_attribute {
\
ssize_t (*show)(
struct _item *,
char *);
\
}
Definition at line 138 of file configfs.h.
#define CONFIGFS_ITEM_NAME_LEN 20 |
config_group_init - initialize a group for use : group
Definition at line 180 of file item.c.
config_item_init - initialize item. : item in question.
Definition at line 50 of file item.c.
config_item_put - decrement refcount for item. : item.
Decrement the refcount, and if 0, call config_item_cleanup().
Definition at line 170 of file item.c.