我正在阅读Bovet和Cesati所著的Understanding the Linux Kernel一书(第三版,2005),他们在书中简要地解释了thread_info结构通过它的“任务”成员指向进程描述符。然而,出于好奇,我在Linux github中查找thread_info结构,该结构似乎只包含一个无符号的长成员"flags“(在这里可以看到: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最近有变化吗?它的用法与以前不同了吗?任何清晰度都将不胜感激。
https://stackoverflow.com/questions/41226182
复制相似问题