|
楼主 |
发表于 2003-6-17 08:47:39
|
显示全部楼层
include/linux/init.h
[code:1]#define __init __attribute__ ((__section__ (".text.init")))
#define __exit __attribute__ ((unused, __section__(".text.exit")))
#define __initdata __attribute__ ((__section__ (".data.init")))
#define __exitdata __attribute__ ((unused, __section__ (".data.exit")))
#define __initsetup __attribute__ ((unused,__section__ (".setup.init")))
#define __init_call __attribute__ ((unused,__section__ (".initcall.init")))
#define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit")))[/code:1]
请大家一并看看这几个定义,
代码注释: Mark functions and data as being only used at initialization or exit time. |
|