pub unsafe extern "C" fn k_msgq_init(
msgq: *mut k_msgq,
buffer: *mut i8,
msg_size: usize,
max_msgs: u32,
)
Expand description
@brief Initialize a message queue.
This routine initializes a message queue object, prior to its first use.
The message queue’s ring buffer must contain space for @a max_msgs messages, each of which is @a msg_size bytes long. Alignment of the message queue’s ring buffer is not necessary.
@param msgq Address of the message queue. @param buffer Pointer to ring buffer that holds queued messages. @param msg_size Message size (in bytes). @param max_msgs Maximum number of messages that can be queued.