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

Issue này chỉ ra một thay đổi trong quá trình khởi tạo kernel. Hãy xem xét mã điểm nhập kernel trong start_kernel và định nghĩa init_task trong init_task.c. So sánh việc khởi tạo trực tiếp hiện tại với cách sử dụng macro INIT_TASK cũ từ include/linux/init_task.h. Cập nhật văn bản sách để phản ánh thay đổi từ kernel 4.16 trở đi.

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.