#[repr(C)]pub struct k_msgq {
pub wait_q: _wait_q_t,
pub lock: k_spinlock,
pub msg_size: usize,
pub max_msgs: u32,
pub buffer_start: *mut u8,
pub buffer_end: *mut u8,
pub read_ptr: *mut u8,
pub write_ptr: *mut u8,
pub used_msgs: u32,
pub poll_events: _dnode,
pub flags: u8,
}Expand description
@brief Message Queue Structure
Fields§
§wait_q: _wait_q_tMessage queue wait queue
lock: k_spinlockLock
msg_size: usizeMessage size
max_msgs: u32Maximal number of messages
buffer_start: *mut u8Start of message buffer
buffer_end: *mut u8End of message buffer
read_ptr: *mut u8Read pointer
write_ptr: *mut u8Write pointer
used_msgs: u32Number of used messages
poll_events: _dnode§flags: u8Message queue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for k_msgq
impl RefUnwindSafe for k_msgq
impl !Send for k_msgq
impl !Sync for k_msgq
impl Unpin for k_msgq
impl UnwindSafe for k_msgq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more