[CRIU] [PATCH 06/15] restore: add helper for getting a temporary address of vma

Andrey Vagin avagin at openvz.org
Fri Nov 2 09:31:58 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 file changed, 1 insertion(+)

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.11.7



More information about the CRIU mailing list