base/include/rtai_pmq.h File Reference

Include dependency graph for rtai_pmq.h:

Go to the source code of this file.

Data Structures

struct  mq_attr
struct  suprt_fun_arg

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 O_NOTIFY_NP   0x1000
#define INVALID_PQUEUE   0
#define MQIDX   0

Typedefs

typedef mq_attr MQ_ATTR
typedef int mqd_t

Functions

static void signal_suprt_fun_mq (struct suprt_fun_arg *fun_arg)
static int rt_request_signal_mq (mqd_t mq)
static mqd_t mq_open (char *mq_name, int oflags, mode_t permissions, struct mq_attr *mq_attr)
static size_t mq_receive (mqd_t mq, char *msg_buffer, size_t buflen, unsigned int *msgprio)
static int mq_send (mqd_t mq, const char *msg, size_t msglen, unsigned int msgprio)
static int mq_close (mqd_t mq)
static int mq_getattr (mqd_t mq, struct mq_attr *attrbuf)
static int mq_setattr (mqd_t mq, const struct mq_attr *new_attrs, struct mq_attr *old_attrs)
static int mq_notify (mqd_t mq, const struct sigevent *notification)
static int mq_unlink (char *mq_name)
static size_t mq_timedreceive (mqd_t mq, char *msg_buffer, size_t buflen, unsigned int *msgprio, const struct timespec *abstime)
static 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 60 of file rtai_pmq.h.

#define MAX_MSGS   10

Definition at line 49 of file rtai_pmq.h.

#define MAX_MSGSIZE   50

Definition at line 48 of file rtai_pmq.h.

#define MAX_PQUEUES   4

Definition at line 46 of file rtai_pmq.h.

#define MQ_BLOCK   0

Definition at line 39 of file rtai_pmq.h.

#define MQ_MAX_MSG_PRIORITY   MQ_PRIO_MAX

Definition at line 44 of file rtai_pmq.h.

#define MQ_MIN_MSG_PRIORITY   0

Definition at line 43 of file rtai_pmq.h.

#define MQ_NAME_MAX   80

Definition at line 41 of file rtai_pmq.h.

#define MQ_NONBLOCK   1

Definition at line 40 of file rtai_pmq.h.

#define MQ_OPEN_MAX   8

Definition at line 35 of file rtai_pmq.h.

#define MQ_PRIO_MAX   32

Definition at line 37 of file rtai_pmq.h.

#define MQIDX   0

Definition at line 202 of file rtai_pmq.h.

#define O_NOTIFY_NP   0x1000

Definition at line 51 of file rtai_pmq.h.


Typedef Documentation

typedef struct mq_attr MQ_ATTR

typedef int mqd_t

Definition at line 204 of file rtai_pmq.h.


Function Documentation

static int mq_close ( mqd_t  mq  )  [inline, static]

Definition at line 304 of file rtai_pmq.h.

References errno, LOW, MQ_CLOSE, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

static int mq_getattr ( mqd_t  mq,
struct mq_attr attrbuf 
) [inline, static]

Definition at line 315 of file rtai_pmq.h.

References errno, LOW, MQ_GETATTR, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

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

Definition at line 337 of file rtai_pmq.h.

References errno, LOW, MQ_NOTIFY, MQIDX, O_NOTIFY_NP, rt_buddy, rt_request_signal_mq(), rtai_lxrt(), SIZARG, and task.

Here is the call graph for this function:

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

Definition at line 257 of file rtai_pmq.h.

References errno, LOW, MQ_OPEN, MQIDX, O_NOTIFY_NP, rt_request_signal_mq(), rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

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

Definition at line 272 of file rtai_pmq.h.

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

Here is the call graph for this function:

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

Definition at line 288 of file rtai_pmq.h.

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

Here is the call graph for this function:

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

Definition at line 326 of file rtai_pmq.h.

References errno, LOW, MQ_SETATTR, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

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

Definition at line 363 of file rtai_pmq.h.

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

Here is the call graph for this function:

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

Definition at line 379 of file rtai_pmq.h.

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

Here is the call graph for this function:

static int mq_unlink ( char *  mq_name  )  [inline, static]

Definition at line 352 of file rtai_pmq.h.

References errno, LOW, MQ_UNLINK, MQIDX, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

static int rt_request_signal_mq ( mqd_t  mq  )  [inline, static]

Definition at line 243 of file rtai_pmq.h.

References suprt_fun_arg::cpuid, rtai_lxrt_t::i, LOW, rt_buddy, RT_SIGNAL_HELPER, rt_thread_create(), rtai_lxrt(), RTAI_SIGNALS_IDX, signal_suprt_fun_mq(), SIGNAL_TASK_STACK_SIZE, and suprt_fun_arg::task.

Here is the call graph for this function:

static void signal_suprt_fun_mq ( struct suprt_fun_arg fun_arg  )  [static]

Definition at line 215 of file rtai_pmq.h.

References suprt_fun_arg::cpuid, LOW, MAXSIGNALS, mlockall, suprt_fun_arg::mq, MQ_REG_USP_NOTIFIER, MQIDX, rt_get_name(), rt_make_hard_real_time(), rt_make_soft_real_time(), RT_SIGNAL_REQUEST, RT_SIGNAL_WAITSIG, rt_task_delete, rt_thread_init(), rtai_lxrt(), RTAI_SIGNALS_IDX, suprt_fun_arg::self, SIGNAL_TASK_INIPRIO, suprt_fun_arg::task, and task.

Here is the call graph for this function:


Generated on Tue Feb 2 17:47:09 2010 for RTAI API by  doxygen 1.4.7