pub unsafe extern "C" fn k_obj_core_stats_query(
obj_core: *mut k_obj_core,
stats: *mut c_void,
stats_len: usize,
) -> i32
Expand description
@brief Retrieve the statistics associated with the kernel object
This function copies the statistics associated with the kernel object core specified by @a obj_core into the buffer @a stats. Unlike the raw statistics this may report calculated values such as averages. 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 the queried stats @param stats_len Length of the memory buffer
@retval 0 on success @retval -errno on failure