Function sys_dlist_insert_at

Source
pub unsafe extern "C" fn sys_dlist_insert_at(
    list: *mut sys_dlist_t,
    node: *mut sys_dnode_t,
    cond: Option<unsafe extern "C" fn(node: *mut sys_dnode_t, data: *mut c_void) -> c_int>,
    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()