2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

IPC: dump shared memory

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Kinsbursky Stanislav
2012-02-09 12:09:41 +03:00
committed by Cyrill Gorcunov
parent 9ef1cb99b6
commit 3d886be2c6
4 changed files with 135 additions and 11 deletions

View File

@@ -22,6 +22,7 @@
#define UTSNS_MAGIC 0x54473203 /* Smolensk */
#define CREDS_MAGIC 0x54023547 /* Kozelsk */
#define IPCNS_VAR_MAGIC 0x53115007 /* Samara */
#define IPCNS_SHM_MAGIC 0x46283044 /* Odessa */
#define PIPEFS_MAGIC 0x50495045
@@ -125,6 +126,22 @@ struct ipc_var_entry {
u32 mq_msgsize_max;
} __packed;
struct ipc_seg {
u32 key;
u32 uid;
u32 gid;
u32 cuid;
u32 cgid;
u32 mode;
u32 id;
u8 pad[4];
} __packed;
struct ipc_shm_entry {
struct ipc_seg seg;
u64 size;
} __packed;
#define VMA_AREA_NONE (0 << 0)
#define VMA_AREA_REGULAR (1 << 0) /* Dumpable area */
#define VMA_AREA_STACK (1 << 1)