diff options
| author | David Mosberger <davidm@napali.hpl.hp.com> | 2004-07-28 09:13:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-28 09:13:51 -0700 |
| commit | 0c0611e1dd79e75e110974ea76055b3498c04a55 (patch) | |
| tree | 1684528457d21cebad14928fffdc64e1ed4918dc /include | |
| parent | 2093d2b74d448f7802cee149c487c3da69c4c418 (diff) | |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4dcbe972d5b5..e752fed52204 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -410,6 +410,10 @@ struct task_struct { unsigned int time_slice, first_time_slice; 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_list; @@ -431,6 +435,10 @@ struct task_struct { */ struct task_struct *real_parent; /* real parent process (when being debugged) */ 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 sibling; /* linkage in my parent's children list */ struct task_struct *group_leader; /* threadgroup leader */ |
