摘要:
Init Call Mechanism in the Linux KernelBy Andrew MurrayIntroductionThe Linux kernel has for a long time (at least since v2.1.23) contained a clever and well-optimised mechanism for calling initialisation code in drivers. It's clever because its functionality is largely abstracted from the driver 阅读全文
摘要:
Kernel. EXPORT_SYMBOL解析Code Segment:include/module.h:struct kernel_symbol { unsigned long value; const char *name;};/* For every exported symbol, place a struct in the __ksymtab section */#define __EXPORT_SYMBOL(sym, sec) \ __CRC_SYMBOL(sym, sec) \ static const char __kstrtab_##sym[] \ __attribute__ 阅读全文