#[no_mangle]
pub unsafe extern "C" fn crosvm_client_balloon_stats(
    socket_path: *const c_char,
    stats: *mut BalloonStatsFfi,
    actual: *mut u64
) -> bool
Expand description

Returns balloon stats of the crosvm instance whose control socket is listening on socket_path.

The parameters stats and actual are optional and will only be written to if they are non-null.

The function returns true on success or false if an error occurred.

§Note

Entries in BalloonStatsFfi that are not available will be set to -1.

§Safety

Function is unsafe due to raw pointer usage - a null pointer could be passed in. Usage of !raw_pointer.is_null() checks should prevent unsafe behavior but the caller should ensure no null pointers are passed.