Function crosvm_control::crosvm_get_vm_descriptor
source · #[no_mangle]
pub unsafe extern "C" fn crosvm_get_vm_descriptor(
socket_path: *const c_char,
vm_desc_out: *mut VmDescriptorFfi,
) -> bool
Expand description
Get a descriptor representing a running VM.
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. vm_desc_out
should be a pointer to a VmDescriptorFfi
valid for writes that is not externally modified for
the duration of this call.