Function crosvm_control::crosvm_client_resume_vm
source · #[no_mangle]
pub unsafe extern "C" fn crosvm_client_resume_vm(
socket_path: *const c_char,
) -> bool
Expand description
Resumes the crosvm instance whose control socket is listening on socket_path
.
Note: this function just resumes vcpus of the vm. If you need to perform a full resume, call crosvm_client_resume_vm_full.
The function returns true on success or false if an error occurred.
§Safety
Function is unsafe due to raw pointer usage - socket_path
should be a non-null pointer to a
C string that is valid for reads and not modified for the duration of the call.