In kernel 4.16 and above init_task is initialized directly
- Dominant language
- Python
- Stars
- 33.5k
- Forks
- 3.6k
- Avg merge
- 8h 41m
- Merged PRs (30d)
- 11
Description
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.
Contributor guide
Research direction
The issue points to a change in kernel initialization. Look at the kernel entry point code in start_kernel and the init_task definition in init_task.c. Compare the current direct initialization with the old INIT_TASK macro usage from include/linux/init_task.h. Update the book text to reflect the change from kernel 4.16 onwards.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100