RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
message.h File Reference

This header file defines the Message Manager API. More...

#include <stddef.h>
#include <stdint.h>
#include <rtems/rtems/attr.h>
#include <rtems/rtems/options.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/score/coremsgbuffer.h>

Go to the source code of this file.

Data Structures

struct  rtems_message_queue_config
 This structure defines the configuration of a message queue constructed by rtems_message_queue_construct(). More...
 

Macros

#define RTEMS_MESSAGE_QUEUE_BUFFER(_maximum_message_size)
 Defines a structure which can be used as a message queue buffer for messages of the specified maximum size.
 

Functions

rtems_status_code rtems_message_queue_create (rtems_name name, uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id)
 Creates a message queue.
 
rtems_status_code rtems_message_queue_construct (const rtems_message_queue_config *config, rtems_id *id)
 Constructs a message queue from the specified the message queue configuration.
 
rtems_status_code rtems_message_queue_ident (rtems_name name, uint32_t node, rtems_id *id)
 Identifies a message queue by the object name.
 
rtems_status_code rtems_message_queue_delete (rtems_id id)
 Deletes the message queue.
 
rtems_status_code rtems_message_queue_send (rtems_id id, const void *buffer, size_t size)
 Puts the message at the rear of the queue.
 
rtems_status_code rtems_message_queue_urgent (rtems_id id, const void *buffer, size_t size)
 Puts the message at the front of the queue.
 
rtems_status_code rtems_message_queue_broadcast (rtems_id id, const void *buffer, size_t size, uint32_t *count)
 Broadcasts the messages to the tasks waiting at the queue.
 
rtems_status_code rtems_message_queue_receive (rtems_id id, void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout)
 Receives a message from the queue.
 
rtems_status_code rtems_message_queue_get_number_pending (rtems_id id, uint32_t *count)
 Gets the number of messages pending on the queue.
 
rtems_status_code rtems_message_queue_flush (rtems_id id, uint32_t *count)
 Flushes all messages on the queue.
 

Detailed Description

This header file defines the Message Manager API.