Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
k_msgq Struct Reference

Message Queue Structure. More...

#include <kernel.h>

Data Fields

_wait_q_t wait_q
 
struct k_spinlock lock
 
size_t msg_size
 
uint32_t max_msgs
 
char * buffer_start
 
char * buffer_end
 
char * read_ptr
 
char * write_ptr
 
uint32_t used_msgs
 
uint8_t flags
 

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: