zephyr::raw

Function sys_slist_len

source
pub unsafe extern "C" fn sys_slist_len(list: *mut _slist) -> 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