zephyr::raw

Function k_msgq_purge

source
pub unsafe extern "C" fn k_msgq_purge(msgq: *mut k_msgq)
Expand description

@brief Purge a message queue.

This routine discards all unreceived messages in a message queue’s ring buffer. Any threads that are blocked waiting to send a message to the message queue are unblocked and see an -ENOMSG error code.

@param msgq Address of the message queue.