Function k_obj_core_stats_register

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

@brief Register kernel object for gathering statistics

Before a kernel object can gather statistics, it must be registered to do so. Registering will also automatically enable the kernel object to gather its statistics.

@param obj_core Pointer to kernel object core @param stats Pointer to raw kernel statistics @param stats_len Size of raw kernel statistics buffer

@retval 0 on success @retval -errno on failure