Chinaunix首页 | 论坛 | 博客
  • 博客访问: 391658
  • 博文数量: 199
  • 博客积分: 154
  • 博客等级: 入伍新兵
  • 技术积分: 1530
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-14 08:43
文章分类

全部博文(199)

文章存档

2015年(101)

2014年(97)

2011年(1)

分类: 嵌入式

2015-04-28 09:33:30

http://blog.csdn.net/zhufengtianya/article/category/2707603
阅读(1256) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

wq41132015-04-28 10:03:19

__exit* macro
__exit定义在:include/linux/init.h
#ifdef MODULE
#define __exit __attribute__ ((__section__(".exit.text")))
#else
#define __exit __attribute_used__ __attribute__((__section__(".exit.text")))
#endif
The exit macro tells the compiler to put the function in the ".exit.text" section. The exit_data macro tells the compiler to put the data in the ".exit.

wq41132015-04-28 10:03:01

__init* macro

__init定义在:include/linux/init.h
#define __init __attribute__ ((__section__ (".init.text")))
#define __initdata __attribute__ ((__section__ (".init.data")))

It tells the compiler to put the variable or the function in a special section, which is declared in vmlinux.lds. init puts the function in the ".init.text" section and initdata&n