zephyr::raw

Function sys_dlist_len

source
pub unsafe extern "C" fn sys_dlist_len(list: *mut _dnode) -> usize
Expand description

@brief Compute the size of the given list in O(n) time

@param list A pointer on the list

@return an integer equal to the size of the list, or 0 if empty