|
MOS Source Code
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#define _DO_SLAB_AUTOINIT(name, var, type, func) \
8 static void func(void) \
10 var = kmemcache_create(name, sizeof(type)); \
12 MOS_INIT(SLAB_AUTOINIT, func)
14#define SLAB_AUTOINIT(name, var, type) _DO_SLAB_AUTOINIT(name, var, type, MOS_CONCAT(__slab_autoinit_, __COUNTER__))