RTEMS: cpukit/include/rtems/posix/mqueue.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
mqueue.h
Go to the documentation of this file.
1
22/*
23 * COPYRIGHT (c) 1989-2011.
24 * On-Line Applications Research Corporation (OAR).
25 *
26 * The license and distribution terms for this file may be
27 * found in the file LICENSE in this distribution or at
28 * http://www.rtems.org/license/LICENSE.
29 */
30
31#ifndef _RTEMS_POSIX_MQUEUE_H
32#define _RTEMS_POSIX_MQUEUE_H
33
34#include <rtems/score/coremsg.h>
35#include <rtems/score/objectdata.h>
36
37#include <limits.h>
38#include <mqueue.h>
39#include <signal.h>
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
53/*
54 * Data Structure used to manage a POSIX message queue
55 */
56
57 typedef struct {
58 Objects_Control Object;
59 CORE_message_queue_Control Message_queue;
60 bool linked;
61 uint32_t open_count;
62 struct sigevent notification;
63 int oflag;
64} POSIX_Message_queue_Control;
65
69extern Objects_Information _POSIX_Message_queue_Information;
70
80#define POSIX_MESSAGE_QUEUE_INFORMATION_DEFINE( max ) \
81 OBJECTS_INFORMATION_DEFINE( \
82 _POSIX_Message_queue, \
83 OBJECTS_POSIX_API, \
84 OBJECTS_POSIX_MESSAGE_QUEUES, \
85 POSIX_Message_queue_Control, \
86 max, \
87 _POSIX_PATH_MAX, \
88 NULL \
89 )
90
93#ifdef __cplusplus
94}
95#endif
96
97#endif
98/* end of include file */
coremsg.h
Constants and Structures Associated with the Message Queue Handler.
_POSIX_Message_queue_Information
Objects_Information _POSIX_Message_queue_Information
The POSIX Message Queue objects information.
objectdata.h
Object Handler Data Structures.
mqueue.h
POSIX Message Queues Private Private Support.
CORE_message_queue_Control
Control block used to manage each message queue.
Definition: coremsg.h:136
Objects_Control
Definition: objectdata.h:39
Objects_Information
The information structure used to manage each API class of objects.
Definition: objectdata.h:176
POSIX_Message_queue_Control
Definition: mqueue.h:57