[CRIU] [PATCH 07/16] restore: add helper for getting a temporary address of vma
Andrey Vagin
avagin at openvz.org
Wed Nov 14 12:19:16 EST 2012
A private vma will be mapped in a temporary place and an address will
be saved in vma->shmid, because nobody was used this field for private
vma-s before. For easy reading vma_premmapped_addr will be used for
getting the temporary address.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
include/image.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/image.h b/include/image.h
index f4ed3eb..916b9a8 100644
--- a/include/image.h
+++ b/include/image.h
@@ -94,6 +94,7 @@
#define VMA_AREA_SYSVIPC (1 << 10)
#define VMA_AREA_SOCKET (1 << 11)
+#define vma_premmaped_start(vma) ((vma)->shmid)
#define vma_entry_is(vma, s) (((vma)->status & (s)) == (s))
#define vma_entry_len(vma) ((vma)->end - (vma)->start)
--
1.7.11.7
More information about the CRIU
mailing list