RTEMS
Public Attributes | List of all members
CORE_message_queue_Buffer Struct Reference

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

#include <coremsgbuffer.h>

Public Attributes

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. More...
 

Detailed Description

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

Definition at line 63 of file coremsgbuffer.h.

Member Data 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.

Definition at line 87 of file coremsgbuffer.h.


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