LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 786|回复: 0

弄懂内核源码的一些提示

[复制链接]
发表于 2007-4-13 17:47:56 | 显示全部楼层 |阅读模式
I find that the key to understanding kernel code is to understand the data structures and the relationships between them. Once you have that in your head, the code tends to just fall out. Hence there is good maintainability payoff in putting work into documenting the struct, its fields, the relationship between this struct and other structs, and any and all locking requirements.

<wonders wtf "ticks" does>
-- Andrew Morton
Andrew Morton现在负责将所有对内核的patch进行整理后提交给Linus,是个很重要的角色。
文中的大意是说,弄懂内核源码中的每个结构,结构与结构的关系,以及“个体与全体的上锁要求”。所以呢,源码中的相关这些结构的注释以及源码外的文档呢,要多加阅读与揣摩。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表