criu/include/shmem.h
Pavel Emelyanov 26a53837f9 shmem: Move shmem dumping code to shmem.c
This is also a code move plus two changes:

* shmems renamed to dump_shmems
* shmem area size is shared with restorer (it's one page for both for now)

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-05-03 18:07:01 +04:00

16 lines
400 B
C

#ifndef __CR_SHMEM_H__
#define __CR_SHMEM_H__
int prepare_shmem_pid(int pid);
int prepare_shmem_restore(void);
void show_saved_shmems(void);
struct vma_entry;
int get_shmem_fd(int pid, struct vma_entry *vi);
struct shmems;
extern struct shmems *rst_shmems;
int cr_dump_shmem(void);
int add_shmem_area(pid_t pid, struct vma_entry *vma);
int init_shmem_dump(void);
void fini_shmem_dump(void);
#endif