RTEMS
|
Files | |
file | msgqcreate.c |
This source file contains the implementation of rtems_message_queue_create(). | |
file | msgqident.c |
rtems_message_queue_ident() Implementation | |
Classes | |
struct | Message_queue_Control |
Macros | |
#define | MESSAGE_QUEUE_INFORMATION_DEFINE(max) |
Macro to define the objects information for the Classic Message Queue objects. More... | |
Enumerations | |
enum | Message_queue_Submit_types { MESSAGE_QUEUE_SEND_REQUEST = 0, MESSAGE_QUEUE_URGENT_REQUEST = 1 } |
Functions | |
rtems_status_code | _Message_queue_Submit (rtems_id id, const void *buffer, size_t size, Message_queue_Submit_types submit_type) |
Message_queue_Submit. More... | |
static __inline__ void | _Message_queue_Free (Message_queue_Control *the_message_queue) |
Deallocates a message queue control block into the inactive chain of free message queue control blocks. More... | |
static __inline__ Message_queue_Control * | _Message_queue_Get (Objects_Id id, Thread_queue_Context *queue_context) |
static __inline__ Message_queue_Control * | _Message_queue_Allocate (void) |
rtems_status_code | _Message_queue_Create (const rtems_message_queue_config *config, rtems_id *id, CORE_message_queue_Allocate_buffers allocate_buffers) |
Creates a message queue. More... | |
Variables | |
Objects_Information | _Message_queue_Information |
The Classic Message Queue objects information. | |
#define MESSAGE_QUEUE_INFORMATION_DEFINE | ( | max | ) |
Macro to define the objects information for the Classic Message Queue objects.
This macro should only be used by <rtems/confdefs.h>.
max | The configured object maximum (the OBJECTS_UNLIMITED_OBJECTS flag may be set). |
Definition at line 77 of file messagedata.h.
The following enumerated type details the modes in which a message may be submitted to a message queue. The message may be posted in a send or urgent fashion.
Definition at line 41 of file messageimpl.h.
rtems_status_code _Message_queue_Create | ( | const rtems_message_queue_config * | config, |
rtems_id * | id, | ||
CORE_message_queue_Allocate_buffers | allocate_buffers | ||
) |
Creates a message queue.
config | is the message queue configuration. | |
[out] | id | contains the object identifier if the operation was successful. |
allocate_buffers | is the message buffer storage area allocation handler. |
Definition at line 53 of file msgqconstruct.c.
|
static |
Deallocates a message queue control block into the inactive chain of free message queue control blocks.
This routine deallocates a message queue control block into the inactive chain of free message queue control blocks.
Definition at line 78 of file messageimpl.h.
rtems_status_code _Message_queue_Submit | ( | rtems_id | id, |
const void * | buffer, | ||
size_t | size, | ||
Message_queue_Submit_types | submit_type | ||
) |
Message_queue_Submit.
This routine implements the directives rtems_message_queue_send and rtems_message_queue_urgent. It processes a message that is to be submitted to the designated message queue. The message will either be processed as a send send message which it will be inserted at the rear of the queue or it will be processed as an urgent message which will be inserted at the front of the queue.