pub unsafe extern "C" fn k_queue_get(
queue: *mut k_queue,
timeout: k_timeout_t,
) -> *mut c_void
Expand description
@brief Get an element from a queue.
This routine removes first data item from @a queue. The first word of the data item is reserved for the kernel’s use.
@note @a timeout must be set to K_NO_WAIT if called from ISR.
@funcprops \isr_ok
@param queue Address of the queue. @param timeout Waiting period to obtain a data item, or one of the special values K_NO_WAIT and K_FOREVER.
@return Address of the data item if successful; NULL if returned without waiting, or waiting period timed out.