2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

libcriu: Add criu_set_cpu_cap helper

To setup cpu capability mask.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2014-02-28 18:59:55 +04:00
committed by Pavel Emelyanov
parent 09c810142c
commit f0b5bedfa5
2 changed files with 7 additions and 0 deletions

View File

@@ -104,6 +104,12 @@ void criu_set_log_file(char *log_file)
opts->log_file = strdup(log_file);
}
void criu_set_cpu_cap(unsigned int cap)
{
opts->has_cpu_cap = true;
opts->cpu_cap = cap;
}
static CriuResp *recv_resp(int socket_fd)
{
unsigned char buf[CR_MAX_MSG_SIZE];