[CRIU] [PATCH cr] [RFC] pstree: simplify access to pid, real_pid,
born_sid
Andrey Vagin
avagin at openvz.org
Fri Jun 1 07:33:56 EDT 2012
New version of pstree_item looks like:
struct pstree_item {
struct list_head list;
union {
struct pid pid; /* leader pid */
u32 born_sid;
struct pid {
u32 real_pid;
u32 pid;
} cpt_pid; /* leader pid */
struct {
union {
u32 born_sid;
u32 real_pid;
};
u32 pid;
};
};
struct pstree_item *parent;
In this case we can use pi->pid instead of pi->pid.pid and so on...
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-dump.c | 62 +++++++++++++++++++++++++-------------------------
cr-restore.c | 66 ++++++++++++++++++++++++++--------------------------
cr-show.c | 8 +++---
files.c | 4 +-
include/crtools.h | 19 +++++++++------
5 files changed, 81 insertions(+), 78 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RFC-pstree-simplify-access-to-pid-real_pid-born_sid.patch
Type: text/x-patch
Size: 17183 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120601/a2c40c83/0001-RFC-pstree-simplify-access-to-pid-real_pid-born_sid-0001.bin
More information about the CRIU
mailing list