sysfs: Add helper BIN_ATTRIBUTE_GROUPS
New helper BIN_ATTRIBUTE_GROUPS() does the same as ATTRIBUTE_GROUPS(), just for binary attributes. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/e20db248-ed30-cf5d-a37c-b538dceaa5b2@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
208012f051
Коммит
46ad057245
|
@ -162,6 +162,12 @@ static const struct attribute_group _name##_group = { \
|
|||
}; \
|
||||
__ATTRIBUTE_GROUPS(_name)
|
||||
|
||||
#define BIN_ATTRIBUTE_GROUPS(_name) \
|
||||
static const struct attribute_group _name##_group = { \
|
||||
.bin_attrs = _name##_attrs, \
|
||||
}; \
|
||||
__ATTRIBUTE_GROUPS(_name)
|
||||
|
||||
struct file;
|
||||
struct vm_area_struct;
|
||||
struct address_space;
|
||||
|
|
Загрузка…
Ссылка в новой задаче