注意:此代码不可编译
- 注释掉了为空的函数
- 删除掉了"不相关"代码
- arch 只保留
x86_64
和arm64
- 删除重声明的结构,如
list_head
- 删除
BITS_PER_LONG == 32
分支代码, 恒为假 - 保留
BITS_PER_LONG == 64
分支代码, 恒为真 - 删除
__BIG_ENDIAN
分支代码, 恒为假 - 保留
__LITTLE_ENDIAN
分支代码, 恒为真 - 删除或注释
CONFIG_X86_32
部分代码, 保留CONFIG_X86_64
- 具体配置请参见
config.h
或config
- 如果有需要,会从linux master 上合入代码
- Linux
- 我的个人理解
- 《奔跑吧,Linux内核》系列图书
- 《深入理解Linux内核》
- 《Linux设备驱动程序》
- 《Linux内核网络协议》
- 《深度探索Linux系统虚拟化》
- 《基于名字空间的安全程序设计》
- 《Linux二进制分析》
- 《Qemu/KVM源码解析与应用》
- Notes
- 还有很多
如果你看到源码注释中有
notes/
为前缀的注释,清参见上述Notes
连接.
见 config
文件
There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. Please read Documentation/admin-guide/README.rst first.
In order to build the documentation, use make htmldocs
or
make pdfdocs
. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.