File: rtipc_8h-source.html

package info (click to toggle)
xenomai 2.5.4-3squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 36,140 kB
  • ctags: 35,509
  • sloc: ansic: 109,084; sh: 11,745; makefile: 2,205; xml: 1,356; asm: 613; php: 316; perl: 155
file content (108 lines) | stat: -rw-r--r-- 8,166 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xenomai API: include/rtdm/rtipc.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
    </ul>
  </div>
<h1>include/rtdm/rtipc.h</h1><a href="rtipc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00043"></a>00043 <span class="preprocessor">#ifndef _RTIPC_H</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="preprocessor">#ifdef __KERNEL__</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;linux/net.h&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;linux/socket.h&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;linux/if.h&gt;</span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="preprocessor">#else  </span><span class="comment">/* !__KERNEL__ */</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;sys/socket.h&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="preprocessor">#endif </span><span class="comment">/* !__KERNEL__ */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;nucleus/types.h&gt;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include &lt;<a class="code" href="rtdm_8h.html" title="Real-Time Driver Model for Xenomai, user API header.">rtdm/rtdm.h</a>&gt;</span>
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="comment">/* Address family */</span>
<a name="l00062"></a>00062 <span class="preprocessor">#define AF_RTIPC                111</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a>00064 <span class="comment">/* Protocol family */</span>
<a name="l00065"></a>00065 <span class="preprocessor">#define PF_RTIPC                AF_RTIPC</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a>00067 <span class="keyword">enum</span> {
<a name="l00068"></a>00068         IPCPROTO_IPC  = 0,      <span class="comment">/* Default protocol (IDDP) */</span>
<a name="l00069"></a>00069         IPCPROTO_XDDP = 1,      <span class="comment">/* Cross-domain datagram protocol */</span>
<a name="l00070"></a>00070         IPCPROTO_IDDP = 2,      <span class="comment">/* Intra-domain datagram protocol */</span>
<a name="l00071"></a>00071         IPCPROTO_BUFP = 3,      <span class="comment">/* Buffer protocol */</span>
<a name="l00072"></a>00072         IPCPROTO_MAX
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074 
<a name="l00075"></a>00075  <span class="comment">/*</span>
<a name="l00076"></a>00076 <span class="comment">  * Valid port ranges:</span>
<a name="l00077"></a>00077 <span class="comment">  * XDDP = [0..OPT_PIPE_NRDEV-1]</span>
<a name="l00078"></a>00078 <span class="comment">  * IDDP = [0..OPT_IDDP_NRPORT-1]</span>
<a name="l00079"></a>00079 <span class="comment">  * BUFP = [0..OPT_BUFP_NRPORT-1]</span>
<a name="l00080"></a>00080 <span class="comment">  */</span>
<a name="l00081"></a>00081 <span class="keyword">typedef</span> int16_t rtipc_port_t;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="keyword">struct </span>sockaddr_ipc {
<a name="l00084"></a>00084         sa_family_t sipc_family; <span class="comment">/* AF_RTIPC */</span>
<a name="l00085"></a>00085         rtipc_port_t sipc_port;
<a name="l00086"></a>00086 };
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="comment">/* RTIPC socket level */</span>
<a name="l00089"></a>00089 <span class="preprocessor">#define SOL_RTIPC  311</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00091"></a>00091 <span class="comment">/* SOL_RTIPC level option names (via setsockopt) */</span>
<a name="l00092"></a>00092 <span class="preprocessor">#define XDDP_SETSTREAMBUF       1</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_SETMONITOR         2</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_SETLOCALPOOL       3</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_SETLABEL           4</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_GETLABEL           5</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor">#define IDDP_SETLOCALPOOL       6</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#define IDDP_GETSTALLCOUNT      7</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#define IDDP_SETLABEL           8</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#define IDDP_GETLABEL           9</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#define BUFP_SETBUFFER          10</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#define BUFP_SETLABEL           11</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#define BUFP_GETLABEL           12</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="preprocessor">#define XDDP_LABEL_LEN          XNOBJECT_NAME_LEN</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor">#define IDDP_LABEL_LEN          XNOBJECT_NAME_LEN</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#define BUFP_LABEL_LEN          XNOBJECT_NAME_LEN</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a>00109 <span class="comment">/* XDDP in-kernel monitored events */</span>
<a name="l00110"></a>00110 <span class="preprocessor">#define XDDP_EVTIN      1</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_EVTOUT     2</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_EVTDOWN    3</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#define XDDP_EVTNOBUF   4</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a>00115 <span class="preprocessor">#endif </span><span class="comment">/* !_RTIPC_H */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Aug 2 12:48:36 2010 for Xenomai API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>