0xAX / 0xAX/linux-insides

In kernel 4.16 and above init_task is initialized directly

Đang mở
#836 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:initialization outdated
Ngôn ngữ chính
Python
Star
33.5k
Fork
3.6k
Merge trung bình
8 giờ 41 phút
Pull request đã merge (30 ngày)
11

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.