Commit 0c0611e1 authored by David Mosberger's avatar David Mosberger Committed by Linus Torvalds

[PATCH] comment "ptrace_list" and "children" members

Document the purpose of the "ptrace_list/ptrace_children" and
"children/sibling" lists.

Signed-off-by: <davidm@hpl.hp.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2093d2b7
...@@ -410,6 +410,10 @@ struct task_struct { ...@@ -410,6 +410,10 @@ struct task_struct {
unsigned int time_slice, first_time_slice; unsigned int time_slice, first_time_slice;
struct list_head tasks; struct list_head tasks;
/*
* ptrace_list/ptrace_children forms the list of my children
* that were stolen by a ptracer.
*/
struct list_head ptrace_children; struct list_head ptrace_children;
struct list_head ptrace_list; struct list_head ptrace_list;
...@@ -431,6 +435,10 @@ struct task_struct { ...@@ -431,6 +435,10 @@ struct task_struct {
*/ */
struct task_struct *real_parent; /* real parent process (when being debugged) */ struct task_struct *real_parent; /* real parent process (when being debugged) */
struct task_struct *parent; /* parent process */ struct task_struct *parent; /* parent process */
/*
* children/sibling forms the list of my children plus the
* tasks I'm ptracing.
*/
struct list_head children; /* list of my children */ struct list_head children; /* list of my children */
struct list_head sibling; /* linkage in my parent's children list */ struct list_head sibling; /* linkage in my parent's children list */
struct task_struct *group_leader; /* threadgroup leader */ struct task_struct *group_leader; /* threadgroup leader */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment