【发布时间】:2016-12-19 15:40:11
【问题描述】:
我正在阅读 Bovet 和 Cesati 所著的《Understanding the Linux Kernel》一书(第 3 版,2005 年),他们简要解释了 thread_info 结构通过其“任务”成员指向进程描述符。但是,出于好奇,我在 Linux github 中寻找 thread_info 结构,似乎该结构仅包含一个无符号长成员“标志”(见此处:https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/thread_info.h)。它看起来与显示 thread_info 结构的旧资源非常不同(例如这里:http://hypervsir.blogspot.com/2014/10/in-linux-kernel-threadinfo-is-small-cpu.html)。 thread_info 最近更改了吗?它的使用方式与以前不同吗?任何澄清将不胜感激。
【问题讨论】:
标签: linux