zephyr::raw

Function k_obj_core_stats_raw

source
pub unsafe extern "C" fn k_obj_core_stats_raw(
    obj_core: *mut k_obj_core,
    stats: *mut c_void,
    stats_len: usize,
) -> i32
Expand description

@brief Retrieve the raw statistics associated with the kernel object

This function copies the raw statistics associated with the kernel object core specified by @a obj_core into the buffer @a stats. Note that the size of the buffer (@a stats_len) must match the size specified by the kernel object type’s statistics descriptor.

@param obj_core Pointer to kernel object core @param stats Pointer to memory buffer into which to copy raw stats @param stats_len Length of the memory buffer

@retval 0 on success @retval -errno on failure