0xAX / 0xAX/linux-insides

In kernel 4.16 and above init_task is initialized directly

未关闭
#836 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:initialization outdated
主要语言
Python
星标
33.5k
派生
3.6k
平均合并
8 小时 41 分钟
30 天内合并 PR
11

描述

Kernel entry point -> First steps in the start_kernel

> You can see the definition of the init_task and it initialized by the INIT_TASK macro. This macro is from [include/linux/init_task.h](https://github.com/torvalds/linux/blob/16f73eb02d7e1765ccab3d2018e0bd98eb93d973/include/linux/init_task.h) and it just fills the init_task with the values for the first process.

In earlier kernels init_task used to be initialized with the INIT_TASK macro, which is now absent. From 4.16 and on, there's a direct initialization in the init_task.c file.

贡献指南

打开贡献指南

调研方向

该 issue 指向内核初始化的一个变更。查看 start_kernel 中的内核入口点代码以及 init_task.c 中的 init_task 定义。将当前的直接初始化与来自 include/linux/init_task.h 的旧 INIT_TASK 宏用法进行比较。更新书籍文本以反映从内核 4.16 开始的变更。

由索引模型根据 Issue 内容生成。

评估

领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。