zephyr::raw

Function sys_dlist_insert_at

source
pub unsafe extern "C" fn sys_dlist_insert_at(
    list: *mut _dnode,
    node: *mut _dnode,
    cond: Option<unsafe extern "C" fn(_: *mut _dnode, _: *mut c_void) -> i32>,
    data: *mut c_void,
)
Expand description

@brief insert node at position

Insert a node in a location depending on a external condition. The cond() function checks if the node is to be inserted before the current node against which it is checked. This and other sys_dlist_*() functions are not thread safe.

@param list the doubly-linked list to operate on @param node the element to insert @param cond a function that determines if the current node is the correct insert point @param data parameter to cond()