pub unsafe extern "C" fn k_queue_unique_append(
queue: *mut k_queue,
data: *mut c_void,
) -> bool
Expand description
@brief Append an element to a queue only if it’s not present already.
This routine appends data item to @a queue. The first word of the data item is reserved for the kernel’s use. Appending elements to k_queue relies on sys_slist_is_node_in_list which is not a constant time operation.
@funcprops \isr_ok
@param queue Address of the queue. @param data Address of the data item.
@return true if data item was added, false if not