zephyr::raw

Function k_queue_append_list

source
pub unsafe extern "C" fn k_queue_append_list(
    queue: *mut k_queue,
    head: *mut c_void,
    tail: *mut c_void,
) -> i32
Expand description

@brief Atomically append a list of elements to a queue.

This routine adds a list of data items to @a queue in one operation. The data items must be in a singly-linked list, with the first word in each data item pointing to the next data item; the list must be NULL-terminated.

@funcprops \isr_ok

@param queue Address of the queue. @param head Pointer to first node in singly-linked list. @param tail Pointer to last node in singly-linked list.

@retval 0 on success @retval -EINVAL on invalid supplied data