Function sys_dlist_peek_head

Source
pub unsafe extern "C" fn sys_dlist_peek_head(
    list: *mut sys_dlist_t,
) -> *mut sys_dnode_t
Expand description

@brief get a reference to the head item in the list

@param list the doubly-linked list to operate on

@return a pointer to the head element, NULL if list is empty