RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Data Fields
CORE_message_queue_Buffer Struct Reference

The structure is used to organize message buffers of a message queue. More...

#include <coremsgbuffer.h>

Data Fields

Chain_Node Node
 This member is used to enqueue the buffer in the pending or free buffer queue of a message queue.
 
size_t size
 This member defines the size of this message.
 
int priority
 This member defines the priority of this message.
 
size_t buffer [RTEMS_ZERO_LENGTH_ARRAY]
 This member contains the actual message.
 

Detailed Description

The structure is used to organize message buffers of a message queue.

Field Documentation

◆ buffer

size_t CORE_message_queue_Buffer::buffer[RTEMS_ZERO_LENGTH_ARRAY]

This member contains the actual message.

This is a zero-length array since the maximum message size is defined by the user. Use a size_t array to make sure that the member offset is at the structure end. This enables a more efficient memcpy() on 64-bit targets and makes it easier to inspect the message buffers with a debugger.


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