zephyr::raw

Function sys_heap_runtime_stats_reset_max

Source
pub unsafe extern "C" fn sys_heap_runtime_stats_reset_max(
    heap: *mut sys_heap,
) -> i32
Expand description

@brief Reset the maximum heap usage.

Set the statistic measuring the maximum number of allocated bytes to the current number of allocated bytes.

@param heap Pointer to sys_heap @return -EINVAL if null pointer was passed, otherwise 0