- Mastering Linux Kernel Development
- Raghu Bharadwaj
- 56字
- 2021-07-08 09:47:15
real_parent and parent
These are pointers to the parent's task structure. For a normal process, both these pointers refer to the same task_struct; they only differ for multi-thread processes, implemented using posix threads. For such cases, real_parent refers to the parent thread task structure and parent refers the process task structure to which SIGCHLD is delivered.
推薦閱讀