[CRIU] [PATCH v6 1/3] Remove static from prepare_task_entries function
Adrian Reber
adrian at lisas.de
Tue Mar 15 06:21:11 PDT 2016
From: Adrian Reber <areber at redhat.com>
For the upcoming userfaultfd integration the lazy-pages mode needs to
setup the criu infrastructure to read the pages files.
Signed-off-by: Adrian Reber <areber at redhat.com>
---
criu/cr-restore.c | 2 +-
criu/include/crtools.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index e35d5b1..9950fa1 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -2143,7 +2143,7 @@ out:
return -1;
}
-static int prepare_task_entries(void)
+int prepare_task_entries(void)
{
task_entries_pos = rst_mem_align_cpos(RM_SHREMAP);
task_entries = rst_mem_alloc(sizeof(*task_entries), RM_SHREMAP);
diff --git a/criu/include/crtools.h b/criu/include/crtools.h
index b369a02..82bb398 100644
--- a/criu/include/crtools.h
+++ b/criu/include/crtools.h
@@ -25,6 +25,7 @@ extern int convert_to_elf(char *elf_path, int fd_core);
extern int cr_check(void);
extern int cr_exec(int pid, char **opts);
extern int cr_dedup(void);
+extern int prepare_task_entries(void);
extern int check_add_feature(char *arg);
--
1.8.3.1
More information about the CRIU
mailing list