zephyr::raw

Function sys_slist_find

source
pub unsafe extern "C" fn sys_slist_find(
    list: *mut _slist,
    node: *mut _snode,
    prev: *mut *mut _snode,
) -> bool
Expand description

@brief Find if a node is already linked in a singly linked list

This and other sys_slist_*() functions are not thread safe.

@param list A pointer to the list to check @param node A pointer to the node to search in the list @param[out] prev A pointer to the previous node

@return true if node was found in the list, false otherwise