2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

rst: Factor out vma fd fixup

Just make the fixup_vma_fds read and write vma images and
those called by it provide and fd for this.

Acked-by: Andrey Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-03-21 19:38:00 +04:00
parent 29e07fa24f
commit 6faac3a39e
3 changed files with 60 additions and 94 deletions

View File

@@ -40,6 +40,6 @@ struct fdinfo_list_entry {
extern int prepare_fds(int pid);
extern int prepare_fd_pid(int pid);
extern int prepare_shared_fdinfo(void);
extern int try_fixup_file_map(int pid, struct vma_entry *vma_entry, int fd);
extern int get_filemap_fd(int pid, struct vma_entry *vma_entry);
#endif /* FILES_H_ */