mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
We have a nasty issue with it. Current code allocates these entries in shremap area one by one. We do NOT allocate any OTHER entries in this region, but if we will this array will be spoiled. Fortunately we no longer need shmem-infos as plain array, neither we need one in restorer. So just turn this into plain shared objects and collect them in a list. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
15 lines
372 B
C
15 lines
372 B
C
#ifndef __CR_SHMEM_H__
|
|
#define __CR_SHMEM_H__
|
|
|
|
#include "lock.h"
|
|
#include "protobuf/vma.pb-c.h"
|
|
|
|
struct _VmaEntry;
|
|
extern int collect_shmem(int pid, struct _VmaEntry *vi);
|
|
extern void show_saved_shmems(void);
|
|
extern int get_shmem_fd(int pid, VmaEntry *vi);
|
|
|
|
extern int cr_dump_shmem(void);
|
|
extern int add_shmem_area(pid_t pid, VmaEntry *vma);
|
|
|
|
#endif /* __CR_SHMEM_H__ */
|