Skip to content

KSLLH/linux-5.10.13

 
 

Repository files navigation

Linux内核完全注释

Linux-5.10.13

注意:此代码不可编译

包含内容

  • 注释掉了为空的函数
  • 删除掉了"不相关"代码
  • arch 只保留 x86_64arm64
  • 删除重声明的结构,如 list_head
  • 删除 BITS_PER_LONG == 32 分支代码, 恒为假
  • 保留 BITS_PER_LONG == 64 分支代码, 恒为真
  • 删除 __BIG_ENDIAN 分支代码, 恒为假
  • 保留 __LITTLE_ENDIAN 分支代码, 恒为真
  • 删除或注释 CONFIG_X86_32 部分代码, 保留 CONFIG_X86_64
  • 具体配置请参见 config.hconfig
  • 如果有需要,会从linux master 上合入代码

注释来源

  1. Linux
  2. 我的个人理解
  3. 《奔跑吧,Linux内核》系列图书
  4. 《深入理解Linux内核》
  5. 《Linux设备驱动程序》
  6. 《Linux内核网络协议》
  7. 《深度探索Linux系统虚拟化》
  8. 《基于名字空间的安全程序设计》
  9. 《Linux二进制分析》
  10. 《Qemu/KVM源码解析与应用》
  11. Notes
  12. 还有很多

如果你看到源码注释中有notes/为前缀的注释,清参见上述 Notes 连接.

配置

config 文件

原 README

Linux kernel

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.

About

Linux kernel fully commented

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.7%
  • Assembly 1.0%
  • Makefile 0.5%
  • Python 0.5%
  • Shell 0.2%
  • Perl 0.1%