Commit f0b5bedf authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

libcriu: Add criu_set_cpu_cap helper

To setup cpu capability mask.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 09c81014
...@@ -104,6 +104,12 @@ void criu_set_log_file(char *log_file) ...@@ -104,6 +104,12 @@ void criu_set_log_file(char *log_file)
opts->log_file = strdup(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) static CriuResp *recv_resp(int socket_fd)
{ {
unsigned char buf[CR_MAX_MSG_SIZE]; unsigned char buf[CR_MAX_MSG_SIZE];
......
...@@ -40,6 +40,7 @@ void criu_set_shell_job(bool shell_job); ...@@ -40,6 +40,7 @@ void criu_set_shell_job(bool shell_job);
void criu_set_file_locks(bool file_locks); void criu_set_file_locks(bool file_locks);
void criu_set_log_level(int log_level); void criu_set_log_level(int log_level);
void criu_set_log_file(char *log_file); void criu_set_log_file(char *log_file);
void criu_set_cpu_cap(unsigned int cap);
/* Here is a table of return values and errno's of functions /* Here is a table of return values and errno's of functions
* from the list down below. * from the list down below.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment