![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
西南飞狐
生命不息,折腾不止。
展开
-
__must_check含义及出处
include/linux/compiler-gcc[3|4|5].h #define __must_check __attribute__((warn_unused_result))__must_check函数是指调用函数一定要处理该函数的返回值,否则编译器会给出警告。原创 2017-12-15 13:03:30 · 1623 阅读 · 0 评论 -
__sched的含义和出处
__sched的定义在这: http://lxr.oss.org.cn/source/include/linux/sched.h?v=3.17#L368 /* Attach to any functions which should be ignored in wchan output. */ #define __sched __attribute原创 2017-12-15 13:20:24 · 1014 阅读 · 0 评论 -
Linux内核启动顺序的确定
转载至:内核编译链接过程是依靠vmlinux.lds文件,以arm为例vmlinux.lds文件位于kernel/arch/arm/vmlinux.lds,vmlinux-armv.lds的生成过程在kernel/arch/arm/Makefile中ifeq ($(CONFIG_CPU_32),y)PROCESSOR = armvTEXTADDR转载 2017-12-15 13:35:17 · 668 阅读 · 0 评论