Commit 9c60b1f4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pstree: pstree_item members tuning up

 - @list member closer to @children
 - add some comments on memebers
 - add space lines for members grouping
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent df83b2c2
...@@ -4,16 +4,20 @@ ...@@ -4,16 +4,20 @@
#include "crtools.h" #include "crtools.h"
struct pstree_item { struct pstree_item {
struct list_head list;
struct pid pid;
struct pstree_item *parent; struct pstree_item *parent;
struct list_head children; /* array of children */ struct list_head children; /* list of my children */
struct list_head list; /* linkage in my parent's children list */
struct pid pid;
pid_t pgid; pid_t pgid;
pid_t sid; pid_t sid;
pid_t born_sid; pid_t born_sid;
int state; /* TASK_XXX constants */ int state; /* TASK_XXX constants */
int nr_threads; /* number of threads */ int nr_threads; /* number of threads */
struct pid *threads; /* array of threads */ struct pid *threads; /* array of threads */
struct rst_info rst[0]; struct rst_info rst[0];
}; };
......
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