base/include/rtai_mbx.h File Reference


Detailed Description

Author:
Paolo Mantegazza
Note:
Copyright © 1999-2003 Paolo Mantegazza <mantegazza@aero.polimi.it>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file rtai_mbx.h.

Include dependency graph for rtai_mbx.h:

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

Go to the source code of this file.

Data Structures

struct  rt_mailbox

Defines

#define RT_MBX_MAGIC   0x3f81aab
#define rt_mbx_init(name, size)   rt_typed_mbx_init(name, size, FIFO_Q)
 Initialize mailbox.
#define rt_named_mbx_init(mbx_name, size)   rt_typed_named_mbx_init(mbx_name, size, FIFO_Q)

Typedefs

typedef rt_mailbox MBX

Functions

static struct rt_mailboxrt_typed_mbx_init (unsigned long name, int size, int qtype)
static int rt_mbx_delete (struct rt_mailbox *mbx)
static struct rt_mailboxrt_typed_named_mbx_init (const char *name, int size, int type)
static int rt_named_mbx_delete (struct rt_mailbox *mbx)
static int rt_mbx_send (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_send_wp (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_send_if (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_send_until (struct rt_mailbox *mbx, void *msg, int msg_size, RTIME time)
static int rt_mbx_send_timed (struct rt_mailbox *mbx, void *msg, int msg_size, RTIME delay)
static int rt_mbx_ovrwr_send (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_evdrp (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_receive (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_receive_wp (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_receive_if (struct rt_mailbox *mbx, void *msg, int msg_size)
static int rt_mbx_receive_until (struct rt_mailbox *mbx, void *msg, int msg_size, RTIME time)
static int rt_mbx_receive_timed (struct rt_mailbox *mbx, void *msg, int msg_size, RTIME delay)


Define Documentation

#define RT_MBX_MAGIC   0x3f81aab

Definition at line 29 of file rtai_mbx.h.

Referenced by mbx_send_if(), and rt_typed_mbx_init().

#define rt_named_mbx_init ( mbx_name,
size   )     rt_typed_named_mbx_init(mbx_name, size, FIFO_Q)

Definition at line 199 of file rtai_mbx.h.


Typedef Documentation

typedef struct rt_mailbox MBX


Function Documentation

static int rt_mbx_delete ( struct rt_mailbox mbx  )  [inline, static]

Definition at line 181 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, LXRT_MBX_DELETE, rtai_lxrt(), and SIZARG.

Referenced by _rt_typed_named_mbx_init(), and rt_named_mbx_delete().

Here is the call graph for this function:

static int rt_mbx_evdrp ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 238 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_EVDRP, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_evdrp().

Here is the call graph for this function:

static int rt_mbx_ovrwr_send ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 232 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_OVRWR_SEND, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_ovrwr_send().

Here is the call graph for this function:

static int rt_mbx_receive ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 244 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_RECEIVE, rtai_lxrt(), and SIZARG.

Referenced by rt_get_net_rpc_ret(), and RT_mbx_receive().

Here is the call graph for this function:

static int rt_mbx_receive_if ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 256 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_RECEIVE_IF, rtai_lxrt(), and SIZARG.

Referenced by rt_get_net_rpc_ret(), and RT_mbx_receive_if().

Here is the call graph for this function:

static int rt_mbx_receive_timed ( struct rt_mailbox mbx,
void *  msg,
int  msg_size,
RTIME  delay 
) [inline, static]

Definition at line 268 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_RECEIVE_TIMED, rtai_lxrt(), and SIZARG.

Referenced by rt_get_net_rpc_ret(), and RT_mbx_receive_timed().

Here is the call graph for this function:

static int rt_mbx_receive_until ( struct rt_mailbox mbx,
void *  msg,
int  msg_size,
RTIME  time 
) [inline, static]

Definition at line 262 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_RECEIVE_UNTIL, rtai_lxrt(), and SIZARG.

Referenced by rt_get_net_rpc_ret(), and RT_mbx_receive_until().

Here is the call graph for this function:

static int rt_mbx_receive_wp ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 250 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_RECEIVE_WP, rtai_lxrt(), and SIZARG.

Referenced by rt_get_net_rpc_ret(), and RT_mbx_receive_wp().

Here is the call graph for this function:

static int rt_mbx_send ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 202 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_SEND, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_send().

Here is the call graph for this function:

static int rt_mbx_send_if ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 214 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_SEND_IF, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_send_if().

Here is the call graph for this function:

static int rt_mbx_send_timed ( struct rt_mailbox mbx,
void *  msg,
int  msg_size,
RTIME  delay 
) [inline, static]

Definition at line 226 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_SEND_TIMED, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

static int rt_mbx_send_until ( struct rt_mailbox mbx,
void *  msg,
int  msg_size,
RTIME  time 
) [inline, static]

Definition at line 220 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_SEND_UNTIL, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_send_timed(), and RT_mbx_send_until().

Here is the call graph for this function:

static int rt_mbx_send_wp ( struct rt_mailbox mbx,
void *  msg,
int  msg_size 
) [inline, static]

Definition at line 208 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, MBX_SEND_WP, rtai_lxrt(), and SIZARG.

Referenced by RT_mbx_send_wp().

Here is the call graph for this function:

static int rt_named_mbx_delete ( struct rt_mailbox mbx  )  [inline, static]

Definition at line 193 of file rtai_mbx.h.

References BIDX, rtai_lxrt_t::i, LOW, NAMED_MBX_DELETE, rtai_lxrt(), and SIZARG.

Referenced by RT_named_mbx_delete().

Here is the call graph for this function:

static struct rt_mailbox* rt_typed_mbx_init ( unsigned long  name,
int  size,
int  qtype 
) [inline, static]

Definition at line 159 of file rtai_mbx.h.

References BIDX, LOW, LXRT_MBX_INIT, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.

Referenced by _rt_typed_named_mbx_init(), and rt_mbx_init().

Here is the call graph for this function:

static struct rt_mailbox* rt_typed_named_mbx_init ( const char *  name,
int  size,
int  type 
) [inline, static]

Definition at line 187 of file rtai_mbx.h.

References BIDX, LOW, NAMED_MBX_INIT, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.

Referenced by RT_typed_named_mbx_init().

Here is the call graph for this function:


Generated on Tue Feb 2 17:46:54 2010 for RTAI API by  doxygen 1.4.7