mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 04:38:59 +00:00
1. use '__attribute__((constructor))' mark initialize function
2. use '__attribute__((destructor))' mark uninitialize function
3. compile module with -fvisibility=hidden. use `__attribute__((visibility("default")))`
mark is need export symbol.so not need module_initialize to initialize export symbol.
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| mod_insmod.c | ||
| mod_modhandle.c | ||
| mod_modsym.c | ||
| mod_procfs.c | ||
| mod_rmmod.c | ||