|
|
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,是个很重要的角色。
文中的大意是说,弄懂内核源码中的每个结构,结构与结构的关系,以及“个体与全体的上锁要求”。所以呢,源码中的相关这些结构的注释以及源码外的文档呢,要多加阅读与揣摩。 |
|