[CRIU] [PATCH cr 06/16] restore: add helper for getting a temporary
address of vma
Andrey Vagin
avagin at openvz.org
Tue Oct 23 06:02:18 EDT 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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/image.h b/include/image.h
index 9d67978..5929e85 100644
--- a/include/image.h
+++ b/include/image.h
@@ -93,6 +93,7 @@
#define VMA_AREA_SYSVIPC (1 << 10)
+#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.1
More information about the CRIU
mailing list