摘要: 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 阅读全文
posted @ 2011-10-12 16:32 Jack204 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 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__ 阅读全文
posted @ 2011-10-12 15:26 Jack204 阅读(841) 评论(0) 推荐(0) 编辑