[CRIU] [PATCH 08/19] files: Export setup_and_serve_out()
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Jan 30 18:42:05 MSK 2018
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/files.c | 2 +-
criu/include/files.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/files.c b/criu/files.c
index 835d434e0..b34a2b302 100644
--- a/criu/files.c
+++ b/criu/files.c
@@ -1118,7 +1118,7 @@ static int serve_out_fd(int pid, int fd, struct file_desc *d)
return ret;
}
-static int setup_and_serve_out(struct fdinfo_list_entry *fle, int new_fd)
+int setup_and_serve_out(struct fdinfo_list_entry *fle, int new_fd)
{
struct file_desc *d = fle->desc;
pid_t pid = fle->pid;
diff --git a/criu/include/files.h b/criu/include/files.h
index 52ad10734..06e031313 100644
--- a/criu/include/files.h
+++ b/criu/include/files.h
@@ -160,6 +160,7 @@ extern struct fdinfo_list_entry *try_file_master(struct file_desc *d);
extern struct fdinfo_list_entry *file_master(struct file_desc *d);
extern struct file_desc *find_file_desc_raw(int type, u32 id);
+extern int setup_and_serve_out(struct fdinfo_list_entry *fle, int new_fd);
extern int recv_desc_from_peer(struct file_desc *d, int *fd);
extern int send_desc_to_peer(int fd, struct file_desc *d);
extern int restore_fown(int fd, FownEntry *fown);
More information about the CRIU
mailing list