#[no_mangle]
pub unsafe extern "C" fn crosvm_client_balloon_working_set(
socket_path: *const c_char,
ws: *mut BalloonWSFfi,
actual: *mut u64,
) -> bool
Expand description
Returns balloon working set of the crosvm instance whose control socket is listening on socket_path.
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. ws
and actual
should be pointers to a BalloonStatsFfi
and u64
respectively that are valid for writes and
not modified for the duration of this call.