zephyr::raw

Function k_queue_merge_slist

source
pub unsafe extern "C" fn k_queue_merge_slist(
    queue: *mut k_queue,
    list: *mut _slist,
) -> i32
Expand description

@brief Atomically add 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 implemented using a sys_slist_t object. Upon completion, the original list is empty.

@funcprops \isr_ok

@param queue Address of the queue. @param list Pointer to sys_slist_t object.

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