__init.__initdata和__exit.__exitdata的定义位于<kernel/include/linux/init.h> /* These are for everybody (although not all archs will actually discard it in modules) */ #define __init __section(.init.text) __cold notrace #define __initdata __section(.init.d…
ZZ FROM: http://blog.csdn.net/musein/article/details/742609 ================================================== The __init and __exit declarations are special kernel macros designed to tell the kernel to flag these functions for special handling in ca…
转自:http://blog.chinaunix.net/uid-30254565-id-5637597.html 内核中container_of宏的详细分析 16年2月28日09:00:37 内核中有一个大名鼎鼎的宏-----container_of():这个宏定义如下所示,为了表示一下敬意,我就把注释一起粘贴下来了: /** * container_of - cast a member of a structure out to the containing structure * @ptr…