Linux kernel :What does task_struct hold?
quoted from :processional linux kernel architecture by Wolfgang Mauerer, page 44
1. state and execution information such as a) pending signals, binary format used(and any emulation information for binary formats of other systems),
b) process identification number (pid), c)pointers to parents and other related processes, and d) time information on program execution (eg, CPU time).
2. information on allocated virtual memory
3. process credentials such as user and group ID, capabilities. Capabilities are special permissions that can be granted to a process. They allow the process to perform certain operations that normally may be performed only by root processes.
System calls can be used to query ( or modify) these data.
4. files used : Not only the binary file with program code but also filesystem information on ALL files handled by the process must be saved.
5. thread information, which records the CPU-specific runtime data of the process.
6. Information on interprocess communication required when working with other applications.
7. signal handlers used by the process to respond to incoming signals.
Keine Kommentare:
Kommentar veröffentlichen