MOS Source Code
Loading...
Searching...
No Matches
sysfs_autoinit.h File Reference
+ Include dependency graph for sysfs_autoinit.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSFS_AUTOREGISTER(sysfs_name, sysfs_items)
 

Macro Definition Documentation

◆ SYSFS_AUTOREGISTER

#define SYSFS_AUTOREGISTER ( sysfs_name,
sysfs_items )
Value:
SYSFS_DEFINE_DIR(sysfs_name, sysfs_items); \
static void __sysfs_##sysfs_name##_init(void) \
{ \
sysfs_register(&__sysfs_##sysfs_name); \
} \
MOS_INIT(SYSFS, __sysfs_##sysfs_name##_init)
#define SYSFS_DEFINE_DIR(sysfs_name, sysfs_items)
Definition sysfs.h:65

Definition at line 7 of file sysfs_autoinit.h.