标签:const nbsp sed ace article define 标记 sse actually
__init、__initdata和__exit、__exitdata的定义位于<kernel/include/linux/init.h>
1 /* These are for everybody (although not all archs will actually 2 discard it in modules) */ 3 #define __init __section(.init.text) __cold notrace 4 #define __initdata __section(.init.data) 5 #define __initconst __constsection(.init.rodata) 6 #define __exitdata __section(.exit.data) 7 #define __exit_call __used __section(.exitcall.exit) 8 9 10 #define __exit __section(.exit.text) __exitused __cold notrace 11 12 /* For assembly routines */ 13 #define __HEAD .section ".head.text","ax" 14 #define __INIT .section ".init.text","ax" 15 #define __FINIT .previous 16 17 #define __INITDATA .section ".init.data","aw",%progbits 18 #define __INITRODATA .section ".init.rodata","a",%progbits 19 #define __FINITDATA .previous 20 21 #define __CPUINIT .section ".cpuinit.text", "ax" 22 #define __CPUINITDATA .section ".cpuinit.data", "aw" 23 #define __CPUINITRODATA .section ".cpuinit.rodata", "a" 24 25 #define __MEMINIT .section ".meminit.text", "ax" 26 #define __MEMINITDATA .section ".meminit.data", "aw" 27 #define __MEMINITRODATA .section ".meminit.rodata", "a" 28 29 /* silence warnings when references are OK */ 30 #define __REF .section ".ref.text", "ax" 31 #define __REFDATA .section ".ref.data", "aw" 32 #define __REFCONST .section ".ref.rodata", "a"
这些宏大多跟和section相关的定义
详见:
内核中的宏定义__init、__initdata和__exit、__exitdata
标签:const nbsp sed ace article define 标记 sse actually
原文地址:https://www.cnblogs.com/y4247464/p/10090284.html