zephyr::raw

Function k_msgq_cleanup

source
pub unsafe extern "C" fn k_msgq_cleanup(msgq: *mut k_msgq) -> i32
Expand description

@brief Release allocated buffer for a queue

Releases memory allocated for the ring buffer.

@param msgq message queue to cleanup

@retval 0 on success @retval -EBUSY Queue not empty