Add a new field to the end of the task descriptor

When we add a new field to the task descriptor (task_struct), why should we add it to the end of task_struct?

If some records are expected to be in certain places, which records are so?

I could not find anything about this on the Internet or in the Linux kernel development book.

+5
source share
1 answer

This may be due to the restriction of the structure of the flows struct thread_struct. Please check how the flow structures are supported in the task structure [may be a list of links] or may be the tail of these structures

0
source

Source: https://habr.com/ru/post/1259655/


All Articles