1#ifndef __VSF_LINUX_SYSFS_H__
2#define __VSF_LINUX_SYSFS_H__
20#define __ATTR(__NAME, __MODE, __SHOW, __STORE) { \
21 .attr = { .name = VSF_STR(__NAME), .mode = (__MODE), }, \
26#define __ATTRIBUTE_GROUPS(__NAME) \
27static const struct attribute_group * __NAME##_groups[] = { \
28 &__NAME##_group, NULL, \
31#define ATTRIBUTE_GROUPS(__NAME) \
32static const struct attribute_group __NAME##_group = { \
33 .attrs = __NAME##_attrs, \
35__ATTRIBUTE_GROUPS(__NAME)
unsigned short umode_t
Definition types.h:88
struct attribute ** attrs
Definition sysfs.h:17
const char * name
Definition sysfs.h:16
const char * name
Definition sysfs.h:11
umode_t mode
Definition sysfs.h:12