Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
k_msgq Struct Reference

Message Queue Structure. More...

#include <kernel.h>

Data Fields

_wait_q_t wait_q
 Message queue wait queue.
 
struct k_spinlock lock
 Lock.
 
size_t msg_size
 Message size.
 
uint32_t max_msgs
 Maximal number of messages.
 
char * buffer_start
 Start of message buffer.
 
char * buffer_end
 End of message buffer.
 
char * read_ptr
 Read pointer.
 
char * write_ptr
 Write pointer.
 
uint32_t used_msgs
 Number of used messages.
 
uint8_t flags
 Message queue.
 

Detailed Description

Message Queue Structure.

Field Documentation

◆ buffer_end

char* k_msgq::buffer_end

End of message buffer.

◆ buffer_start

char* k_msgq::buffer_start

Start of message buffer.

◆ flags

uint8_t k_msgq::flags

Message queue.

◆ lock

struct k_spinlock k_msgq::lock

Lock.

◆ max_msgs

uint32_t k_msgq::max_msgs

Maximal number of messages.

◆ msg_size

size_t k_msgq::msg_size

Message size.

◆ read_ptr

char* k_msgq::read_ptr

Read pointer.

◆ used_msgs

uint32_t k_msgq::used_msgs

Number of used messages.

◆ wait_q

_wait_q_t k_msgq::wait_q

Message queue wait queue.

◆ write_ptr

char* k_msgq::write_ptr

Write pointer.


The documentation for this struct was generated from the following file: