base/include/rtai_mq.h File Reference

#include <linux/version.h>
#include <rtai_sem.h>
#include <signal.h>
#include <rtai_lxrt.h>

Include dependency graph for rtai_mq.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  mq_attr

Defines

#define MQ_OPEN_MAX   8
#define MQ_PRIO_MAX   32
#define MQ_BLOCK   0
#define MQ_NONBLOCK   1
#define MQ_NAME_MAX   80
#define MQ_MIN_MSG_PRIORITY   0
#define MQ_MAX_MSG_PRIORITY   MQ_PRIO_MAX
#define MAX_PQUEUES   4
#define MAX_MSGSIZE   50
#define MAX_MSGS   10
#define INVALID_PQUEUE   0
#define MQIDX   0

Typedefs

typedef mq_attr MQ_ATTR
typedef int mqd_t

Functions

mqd_t mq_open (char *mq_name, int oflags, mode_t permissions, struct mq_attr *mq_attr)
size_t mq_receive (mqd_t mq, char *msg_buffer, size_t buflen, unsigned int *msgprio)
int mq_send (mqd_t mq, const char *msg, size_t msglen, unsigned int msgprio)
int mq_close (mqd_t mq)
int mq_getattr (mqd_t mq, struct mq_attr *attrbuf)
int mq_setattr (mqd_t mq, const struct mq_attr *new_attrs, struct mq_attr *old_attrs)
int mq_notify (mqd_t mq, const struct sigevent *notification)
int mq_unlink (char *mq_name)
size_t mq_timedreceive (mqd_t mq, char *msg_buffer, size_t buflen, unsigned int *msgprio, const struct timespec *abstime)
int mq_timedsend (mqd_t mq, const char *msg, size_t msglen, unsigned int msgprio, const struct timespec *abstime)


Define Documentation

#define INVALID_PQUEUE   0
 

Definition at line 54 of file rtai_mq.h.

Referenced by delete_queue(), mq_close(), and mq_open().

#define MAX_MSGS   10
 

Definition at line 45 of file rtai_mq.h.

#define MAX_MSGSIZE   50
 

Definition at line 44 of file rtai_mq.h.

#define MAX_PQUEUES   4
 

Definition at line 43 of file rtai_mq.h.

Referenced by _mq_receive(), _mq_send(), _mq_timedreceive(), _mq_timedsend(), mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_setattr(), and name_to_id().

#define MQ_BLOCK   0
 

Definition at line 36 of file rtai_mq.h.

Referenced by mq_setattr().

#define MQ_MAX_MSG_PRIORITY   MQ_PRIO_MAX
 

Definition at line 41 of file rtai_mq.h.

#define MQ_MIN_MSG_PRIORITY   0
 

Definition at line 40 of file rtai_mq.h.

Referenced by initialise_queue().

#define MQ_NAME_MAX   80
 

Definition at line 38 of file rtai_mq.h.

Referenced by mq_open().

#define MQ_NONBLOCK   1
 

Definition at line 37 of file rtai_mq.h.

Referenced by mq_setattr().

#define MQ_OPEN_MAX   8
 

Definition at line 34 of file rtai_mq.h.

Referenced by can_access(), is_blocking(), mq_close(), mq_open(), and mq_setattr().

#define MQ_PRIO_MAX   32
 

Definition at line 35 of file rtai_mq.h.

Referenced by _mq_send(), and _mq_timedsend().

#define MQIDX   0
 

Definition at line 185 of file rtai_mq.h.

Referenced by mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_receive(), mq_send(), mq_setattr(), mq_timedreceive(), mq_timedsend(), and mq_unlink().


Typedef Documentation

typedef struct mq_attr MQ_ATTR
 

Referenced by delete_queue().

typedef int mqd_t
 

Definition at line 187 of file rtai_mq.h.

Referenced by _mq_receive(), _mq_send(), _mq_timedreceive(), _mq_timedsend(), mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_receive(), mq_send(), mq_setattr(), mq_timedreceive(), and mq_timedsend().


Function Documentation

int mq_close mqd_t  mq  )  [inline]
 

Definition at line 211 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_CLOSE, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_getattr mqd_t  mq,
struct mq_attr attrbuf
[inline]
 

Definition at line 217 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_GETATTR, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_notify mqd_t  mq,
const struct sigevent *  notification
[inline]
 

Definition at line 229 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_NOTIFY, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

mqd_t mq_open char *  mq_name,
int  oflags,
mode_t  permissions,
struct mq_attr mq_attr
[inline]
 

Definition at line 193 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_OPEN, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

size_t mq_receive mqd_t  mq,
char *  msg_buffer,
size_t  buflen,
unsigned int *  msgprio
[inline]
 

Definition at line 199 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_RECEIVE, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_send mqd_t  mq,
const char *  msg,
size_t  msglen,
unsigned int  msgprio
[inline]
 

Definition at line 205 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_SEND, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_setattr mqd_t  mq,
const struct mq_attr new_attrs,
struct mq_attr old_attrs
[inline]
 

Definition at line 223 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_SETATTR, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

size_t mq_timedreceive mqd_t  mq,
char *  msg_buffer,
size_t  buflen,
unsigned int *  msgprio,
const struct timespec *  abstime
[inline]
 

Definition at line 241 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_TIMEDRECEIVE, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_timedsend mqd_t  mq,
const char *  msg,
size_t  msglen,
unsigned int  msgprio,
const struct timespec *  abstime
[inline]
 

Definition at line 247 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_TIMEDSEND, mqd_t, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int mq_unlink char *  mq_name  )  [inline]
 

Definition at line 235 of file rtai_mq.h.

References rtai_lxrt_t::i, LOW, MQ_UNLINK, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:


Generated on Thu Nov 20 11:52:44 2008 for RTAI API by doxygen 1.3.8