In kernel 4.16 and above init_task is initialized directly
- Langage dominant
- Python
- Étoiles
- 33.5k
- Forks
- 3.6k
- Merge moyen
- 8 h 41 min
- PR mergées (30 j)
- 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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Le problème pointe vers un changement dans l'initialisation du noyau. Examinez le code du point d'entrée du noyau dans start_kernel et la définition de init_task dans init_task.c. Comparez l'initialisation directe actuelle avec l'ancienne utilisation de la macro INIT_TASK de include/linux/init_task.h. Mettez à jour le texte du livre pour refléter le changement à partir du noyau 4.16.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100