Initial commit.

This commit is contained in:
2017-10-26 19:57:24 +02:00
commit 9ce8b5485d
1090 changed files with 47036 additions and 0 deletions
@@ -0,0 +1,195 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MPI On Cell (Documentation): include/internal/imoc_core.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="../../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>
</ul>
</div>
<h1>include/internal/imoc_core.h</h1><a href="../../d7/d3d/imoc__core_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MOC_INTERNAL_CORE_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MOC_INTERNAL_CORE_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">/**</span>
<a name="l00009"></a>00009 <span class="comment"> * \addtogroup internal_core</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * This section deals with the data-structures and the basic concepts which </span>
<a name="l00012"></a>00012 <span class="comment"> * form the core of this implementation.</span>
<a name="l00013"></a>00013 <span class="comment"> * </span>
<a name="l00014"></a>00014 <span class="comment"> * \section icore_struct Data-Structures</span>
<a name="l00015"></a>00015 <span class="comment"> * </span>
<a name="l00016"></a>00016 <span class="comment"> * Basically there are four data-structures. \ref moc_message_envelope_struct</span>
<a name="l00017"></a>00017 <span class="comment"> * holds meta-information about a message and \ref moc_message_status_struct holds</span>
<a name="l00018"></a>00018 <span class="comment"> * information about used buffer-space and provide means for a receiving proccess</span>
<a name="l00019"></a>00019 <span class="comment"> * to send some information back to the sending process. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> * \ref moc_process_struct stores information every node needs to know about the </span>
<a name="l00022"></a>00022 <span class="comment"> * other nodes to successfully communicate with them.</span>
<a name="l00023"></a>00023 <span class="comment"> * </span>
<a name="l00024"></a>00024 <span class="comment"> * The forth data-structure (actually there are two) \ref moc_node_handle_ppu_struct</span>
<a name="l00025"></a>00025 <span class="comment"> * respectively \ref moc_node_handle_spu_struct holds information a node know about </span>
<a name="l00026"></a>00026 <span class="comment"> * itself and the execution environment.</span>
<a name="l00027"></a>00027 <span class="comment"> * </span>
<a name="l00028"></a>00028 <span class="comment"> * \section core_conc Concepts</span>
<a name="l00029"></a>00029 <span class="comment"> * </span>
<a name="l00030"></a>00030 <span class="comment"> * Every node has (N-1) queues for incoming messages, where N is the overall number</span>
<a name="l00031"></a>00031 <span class="comment"> * of node. Each queue is exclusively used by a specific remote node to write </span>
<a name="l00032"></a>00032 <span class="comment"> * meta-data about the message to be send into it (queue-entries are of type \ref</span>
<a name="l00033"></a>00033 <span class="comment"> * moc_message_envelope_struct). Because there are several independend queues and no</span>
<a name="l00034"></a>00034 <span class="comment"> * global time is available, an exact order of all incoming messages cannot be guaranteed.</span>
<a name="l00035"></a>00035 <span class="comment"> * Corrent ordering can only be guaranteed for messages from the same source-node.</span>
<a name="l00036"></a>00036 <span class="comment"> * The queues are implemented in form of a big array which is divided in (N-1) equally </span>
<a name="l00037"></a>00037 <span class="comment"> * sized pieces.</span>
<a name="l00038"></a>00038 <span class="comment"> * </span>
<a name="l00039"></a>00039 <span class="comment"> * Furthermore every node has an array of size (N-1)*m where m is the size of a</span>
<a name="l00040"></a>00040 <span class="comment"> * message-queue (entries are of type \ref moc_message_status_struct). </span>
<a name="l00041"></a>00041 <span class="comment"> * This array is used for buffer-management and to report the status of a message</span>
<a name="l00042"></a>00042 <span class="comment"> * back to the sender.</span>
<a name="l00043"></a>00043 <span class="comment"> * Every message currently under progress has a message-id which is unique in respect </span>
<a name="l00044"></a>00044 <span class="comment"> * to the sending-node. This message-id is equal to the index of the corresponding</span>
<a name="l00045"></a>00045 <span class="comment"> * entry of the status-array.</span>
<a name="l00046"></a>00046 <span class="comment"> * </span>
<a name="l00047"></a>00047 <span class="comment"> * In order to communicate with other nodes every node also keeps a list of all nodes</span>
<a name="l00048"></a>00048 <span class="comment"> * in the execution environment (entries are of type \ref moc_process_struct).</span>
<a name="l00049"></a>00049 <span class="comment"> * </span>
<a name="l00050"></a>00050 <span class="comment"> * Pointers to the own arrays and some further information a node needs to know (e.g.</span>
<a name="l00051"></a>00051 <span class="comment"> * own rank) is stored in the globally accessible variable \ref node_handle.</span>
<a name="l00052"></a>00052 <span class="comment"> **/</span><span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment">//@{</span>
<a name="l00054"></a>00054 <span class="comment"></span><span class="comment">/**</span>
<a name="l00055"></a>00055 <span class="comment"> * @name PPU &amp; SPU</span>
<a name="l00056"></a>00056 <span class="comment"> **/</span><span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">//@{</span>
<a name="l00058"></a>00058 <span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment"></span>
<a name="l00060"></a>00060 <span class="comment">/**</span>
<a name="l00061"></a>00061 <span class="comment"> * Default size of the message-queues.</span>
<a name="l00062"></a>00062 <span class="comment"> **/</span>
<a name="l00063"></a><a class="code" href="../../dd/df8/group__internal__core.html#g081d07bc934f7112abc3c792b8941e0e">00063</a> <span class="preprocessor">#define MOC_QUEUE_SIZE 4</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment">/**</span>
<a name="l00066"></a>00066 <span class="comment"> * Default size of the buffers used for buffered communication.</span>
<a name="l00067"></a>00067 <span class="comment"> **/</span>
<a name="l00068"></a><a class="code" href="../../dd/df8/group__internal__core.html#g5a64c26720f2d3569ed03dd9d0547b5a">00068</a> <span class="preprocessor">#define MOC_BUFFER_SIZE 2048</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">/**</span>
<a name="l00072"></a>00072 <span class="comment"> * Message-envelope structure.</span>
<a name="l00073"></a>00073 <span class="comment"> * </span>
<a name="l00074"></a>00074 <span class="comment"> * Is used to store meta-data about the message in the message-queues of the receiving process.</span>
<a name="l00075"></a>00075 <span class="comment"> **/</span>
<a name="l00076"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html">00076</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html" title="Message-envelope structure.">moc_message_envelope_struct</a>
<a name="l00077"></a>00077 {
<a name="l00078"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#8e4a31624fc7e1d66e972d570ba0207c">00078</a> uint8_t <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#8e4a31624fc7e1d66e972d570ba0207c" title="Message-ID.">id</a>; <span class="comment">/**&lt; Message-ID. Also index of message-status-array*/</span>
<a name="l00079"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#75502fafc90d03a3b101e5c43c8c1727">00079</a> uint8_t <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#75502fafc90d03a3b101e5c43c8c1727" title="Message-tag.">tag</a>; <span class="comment">/**&lt; Message-tag*/</span>
<a name="l00080"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#84160292a4e38f9f72a2937e8a0205ad">00080</a> uint8_t <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#84160292a4e38f9f72a2937e8a0205ad" title="Communicator of message.">communicator</a>; <span class="comment">/**&lt; Communicator of message*/</span>
<a name="l00081"></a>00081 <span class="keyword">union</span>
<a name="l00082"></a>00082 {
<a name="l00083"></a>00083 <span class="keyword">struct </span>
<a name="l00084"></a>00084 {
<a name="l00085"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#9e7c103634313d354c874a2834a39116">00085</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#9e7c103634313d354c874a2834a39116" title="Is the message valid?">valid</a> : 1; <span class="comment">/**&lt; Is the message valid? */</span>
<a name="l00086"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#e0f658191798e4c75db62b62b58519ec">00086</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#e0f658191798e4c75db62b62b58519ec" title="Should the status be reported back to the sending process.">signal_back</a> : 1; <span class="comment">/**&lt; Should the status be reported back to the</span>
<a name="l00087"></a>00087 <span class="comment"> sending process */</span>
<a name="l00088"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#02b00a7d895aeabbffedaaa5b6f124d2">00088</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#02b00a7d895aeabbffedaaa5b6f124d2" title="Is this message a special message?">special</a> : 1; <span class="comment">/**&lt; Is this message a special message? */</span>
<a name="l00089"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#906f21b8d1ace463dbd7ed8588f97816">00089</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#906f21b8d1ace463dbd7ed8588f97816" title="Is this message part of a collaborative communication?">collaborative</a> : 1; <span class="comment">/**&lt; Is this message part of a collaborative </span>
<a name="l00090"></a>00090 <span class="comment"> communication? */</span>
<a name="l00091"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#864efa93a60cf1c26bc3d66e3dfe41f3">00091</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#864efa93a60cf1c26bc3d66e3dfe41f3" title="Which channel is used to transport the message?">channel</a> : 2; <span class="comment">/**&lt; Which channel is used to transport the message? */</span>
<a name="l00092"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#cf9b1b3acf1c9d1a5532251d48108ab5">00092</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#cf9b1b3acf1c9d1a5532251d48108ab5" title="Are the data in Main-Memory?">in_mm</a> : 1; <span class="comment">/**&lt; Are the data in Main-Memory? */</span>
<a name="l00093"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#48557404e43ae6091da6d92b9964e451">00093</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#48557404e43ae6091da6d92b9964e451" title="Should the message-status-entry be invalidated?">keep_valid</a> : 1; <span class="comment">/**&lt; Should the message-status-entry be invalidated? */</span>
<a name="l00094"></a>00094 } <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&amp;quot;No nodes in list\n&amp;quot;);...">__attribute__</a>((__packed__)) <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#5538e79854840d3caf08b90b5409e16b" title="flag-struct">bits</a>; <span class="comment">/**&lt; flag-struct */</span>
<a name="l00095"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#e51379150ad496c8844a4b9b0096120b">00095</a> uint8_t <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#e51379150ad496c8844a4b9b0096120b" title="union-value">value</a>; <span class="comment">/**&lt; union-value */</span>
<a name="l00096"></a>00096 } <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>; <span class="comment">/**&lt; flag-union */</span>
<a name="l00097"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#33c0974607df68bb2dcb47c8cad3a909">00097</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#33c0974607df68bb2dcb47c8cad3a909" title="Message-size in byte.">size</a> : 24; <span class="comment">/**&lt; Message-size in byte*/</span>
<a name="l00098"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#d378e074ce754a4db919128cede7dae3">00098</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#d378e074ce754a4db919128cede7dae3" title="Data-type of message-entries.">datatype</a> : 8; <span class="comment">/**&lt; Data-type of message-entries */</span>
<a name="l00099"></a><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#1e4384284a652a24abc1cf65fc47d665">00099</a> uint64_t <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#1e4384284a652a24abc1cf65fc47d665" title="Effective address of message-data.">message_address</a>; <span class="comment">/**&lt; Effective address of message-data*/</span>
<a name="l00100"></a>00100 } <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&amp;quot;No nodes in list\n&amp;quot;);...">__attribute__</a>((__packed__)) <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html" title="Message-envelope structure.">moc_message_envelope_t</a>;
<a name="l00101"></a>00101
<a name="l00102"></a>00102 <span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">/**</span>
<a name="l00104"></a>00104 <span class="comment"> * Constant for moc_message_envelope_t.flags.channel.</span>
<a name="l00105"></a>00105 <span class="comment"> * </span>
<a name="l00106"></a>00106 <span class="comment"> * Message is transported via a DMA-Call.</span>
<a name="l00107"></a>00107 <span class="comment"> **/</span>
<a name="l00108"></a><a class="code" href="../../dd/df8/group__internal__core.html#gda23ff5baabe186f8c37c0424598c7bc">00108</a> <span class="preprocessor">#define IMOC_MESSAGE_CHANNEL_DMA 0</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>
<a name="l00110"></a>00110 <span class="comment"></span>
<a name="l00111"></a>00111 <span class="comment">/**</span>
<a name="l00112"></a>00112 <span class="comment"> * Constant for moc_message_envelope_t.flags.channel.</span>
<a name="l00113"></a>00113 <span class="comment"> * </span>
<a name="l00114"></a>00114 <span class="comment"> * Message is embedded in message-envelope.</span>
<a name="l00115"></a>00115 <span class="comment"> **/</span>
<a name="l00116"></a><a class="code" href="../../dd/df8/group__internal__core.html#g1a3153033a1eaac0ddff04deac271947">00116</a> <span class="preprocessor">#define IMOC_MESSAGE_CHANNEL_ENV 1</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span>
<a name="l00118"></a>00118 <span class="comment"></span>
<a name="l00119"></a>00119 <span class="comment">/**</span>
<a name="l00120"></a>00120 <span class="comment"> * Message-status structure.</span>
<a name="l00121"></a>00121 <span class="comment"> * </span>
<a name="l00122"></a>00122 <span class="comment"> * Is used to store information about the message-status and the buffer used in the</span>
<a name="l00123"></a>00123 <span class="comment"> * message-status-array.</span>
<a name="l00124"></a>00124 <span class="comment"> **/</span>
<a name="l00125"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html">00125</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../dd/df5/structmoc__message__status__struct.html" title="Message-status structure.">moc_message_status_struct</a>
<a name="l00126"></a>00126 {
<a name="l00127"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#e8c63164c741fbe8af05ab10225f910e">00127</a> uint32_t buffer_offset; <span class="comment">/**&lt; allocated buffer-offset from buffer-base */</span>
<a name="l00128"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#e2130ff455b57d82f77116fca11deb33">00128</a> uint32_t message_size; <span class="comment">/**&lt; size of message in byte */</span>
<a name="l00129"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#d6888b570d01a9f1dfc41e621904d72c">00129</a> uint32_t error_value; <span class="comment">/**&lt; optional error-code of message */</span>
<a name="l00130"></a>00130 <span class="keyword">union</span>
<a name="l00131"></a>00131 {
<a name="l00132"></a>00132 <span class="keyword">struct</span>
<a name="l00133"></a>00133 {
<a name="l00134"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#f46ac6349e9244afe9841afed2ec9192">00134</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#9e7c103634313d354c874a2834a39116" title="Is the message valid?">valid</a> : 1; <span class="comment">/**&lt; Is this entry valid? */</span>
<a name="l00135"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#ac36e005c019f7811b14588ccc8b6ae9">00135</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outstanding : 1; <span class="comment">/**&lt; Message is not yet received? */</span>
<a name="l00136"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#88a312a8474fb4ad31bb79be8e2704e8">00136</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buffer_used : 1; <span class="comment">/**&lt; Is Bufferspace used? */</span>
<a name="l00137"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#7b336d0c92a22d73f5e7585dc7b28a49">00137</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reserved : 5; <span class="comment">/**&lt; reserved */</span>
<a name="l00138"></a>00138 } <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&amp;quot;No nodes in list\n&amp;quot;);...">__attribute__</a>((__packed__)) bits; <span class="comment">/**&lt; flag-struct */</span>
<a name="l00139"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#d6c989ccbfc4a74a8c3982a1098c3d78">00139</a> uint8_t value; <span class="comment">/**&lt; union-value */</span>
<a name="l00140"></a>00140 } <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>; <span class="comment">/**&lt; flag-union */</span>
<a name="l00141"></a><a class="code" href="../../dd/df5/structmoc__message__status__struct.html#5216df4edcee08127bf6e4147b1a0aef">00141</a> uint8_t reserved[3]; <span class="comment">/**&lt; reserved */</span>
<a name="l00142"></a>00142 } <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&amp;quot;No nodes in list\n&amp;quot;);...">__attribute__</a>((__packed__)) <a class="code" href="../../dd/df5/structmoc__message__status__struct.html" title="Message-status structure.">moc_message_status_t</a>;
<a name="l00143"></a>00143
<a name="l00144"></a>00144 <span class="comment"></span>
<a name="l00145"></a>00145 <span class="comment">/**</span>
<a name="l00146"></a>00146 <span class="comment"> * Constant for moc_process_struct.type.</span>
<a name="l00147"></a>00147 <span class="comment"> **/</span>
<a name="l00148"></a><a class="code" href="../../dd/df8/group__internal__core.html#ge8939a6190d1b74b2526d480e434894d">00148</a> <span class="preprocessor">#define MOC_PPU_PROCESS 0</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00150"></a>00150 <span class="comment">/**</span>
<a name="l00151"></a>00151 <span class="comment"> * Constant for moc_process_struct.type.</span>
<a name="l00152"></a>00152 <span class="comment"> **/</span>
<a name="l00153"></a><a class="code" href="../../dd/df8/group__internal__core.html#gde1178e17b18360542f46e09a4f3fce0">00153</a> <span class="preprocessor">#define MOC_SPU_PROCESS 1</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span>
<a name="l00155"></a>00155 <span class="comment"></span>
<a name="l00156"></a>00156 <span class="comment">/**</span>
<a name="l00157"></a>00157 <span class="comment"> * Process-information structure.</span>
<a name="l00158"></a>00158 <span class="comment"> * </span>
<a name="l00159"></a>00159 <span class="comment"> * Stores information about a MOC-Process. This information is used for communication</span>
<a name="l00160"></a>00160 <span class="comment"> * between the processes.</span>
<a name="l00161"></a>00161 <span class="comment"> */</span>
<a name="l00162"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html">00162</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d0/db8/structmoc__process__struct.html" title="Process-information structure.">moc_process_struct</a>
<a name="l00163"></a>00163 {
<a name="l00164"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html#9fa234bed220e0a3daa5b110a036e72e">00164</a> uint8_t type; <span class="comment">/**&lt; Process-type (SPU or PPU) */</span>
<a name="l00165"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html#3214c8e3b36c00b159209bbaf277e53d">00165</a> uint8_t reserved[7]; <span class="comment">/**&lt; reserved */</span>
<a name="l00166"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html#9aefc9d4ee29f7c0ca1dff18cb41713c">00166</a> uint64_t inbox_queue_base; <span class="comment">/**&lt; effective base-address of message-queues */</span>
<a name="l00167"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html#6331f5f40bddc0b08409a3599af9b8c8">00167</a> uint64_t stat_array_base; <span class="comment">/**&lt; effective base-address of message-status-array */</span>
<a name="l00168"></a><a class="code" href="../../d0/db8/structmoc__process__struct.html#a8eea33631234dc3eccf859a3d3de40e">00168</a> uint64_t ps_base; <span class="comment">/**&lt; effective base-address of problem-state (Signals, mailboxes, ...)*/</span>
<a name="l00169"></a>00169 } <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&amp;quot;No nodes in list\n&amp;quot;);...">__attribute__</a>((__packed__)) <a class="code" href="../../d0/db8/structmoc__process__struct.html" title="Process-information structure.">moc_process_t</a>;
<a name="l00170"></a>00170 <span class="comment"></span>
<a name="l00171"></a>00171 <span class="comment">//@}</span>
<a name="l00172"></a>00172 <span class="comment"></span><span class="comment">//@}</span>
<a name="l00173"></a>00173 <span class="comment"></span><span class="preprocessor">#endif </span><span class="comment">/*MOC_INTERNAL_CORE_*/</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:49:47 2009 for MPI On Cell (Documentation) 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>