a9cb28cd23
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 |