<ahref="chmempools_8h.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/*</span>
<aname="l00043"></a><aclass="code"href="structpool__header.html">00043</a><spanclass="keyword">struct </span><aclass="code"href="structpool__header.html"title="Memory pool free object header.">pool_header</a> {
<aname="l00044"></a><aclass="code"href="structpool__header.html#aac699414c648388563597a56e34adeb4">00044</a><spanclass="keyword">struct </span><aclass="code"href="structpool__header.html"title="Memory pool free object header.">pool_header</a> *<aclass="code"href="structpool__header.html#aac699414c648388563597a56e34adeb4"title="Pointer to the next pool header in the list.">ph_next</a>; <spanclass="comment">/**< @brief Pointer to the next pool</span>
<aname="l00045"></a>00045 <spanclass="comment"> header in the list. */</span>
<aname="l00052"></a><aclass="code"href="struct_memory_pool.html#ac1cf32748cc712049b503c2b00f99167">00052</a><spanclass="keyword">struct </span><aclass="code"href="structpool__header.html"title="Memory pool free object header.">pool_header</a> *mp_next; <spanclass="comment">/**< @brief Pointer to the header. */</span>
<aname="l00053"></a><aclass="code"href="struct_memory_pool.html#a962ca1e05036d54213b3a0eeaebb0ec6">00053</a><spanclass="keywordtype">size_t</span> mp_object_size; <spanclass="comment">/**< @brief Memory pool objects</span>
<aname="l00087"></a>00087 <spanclass="preprocessor"></span><spanclass="keywordtype">void</span><aclass="code"href="group__pools.html#ga9c53c25a5ae60930534cde8620775781"title="Initializes an empty memory pool.">chPoolInit</a>(<aclass="code"href="struct_memory_pool.html"title="Memory pool descriptor.">MemoryPool</a> *mp, <spanclass="keywordtype">size_t</span> size, <aclass="code"href="group__memcore.html#ga4fb77ad6b1053341257948231799b4ad"title="Memory get function.">memgetfunc_t</a> provider);
<aname="l00088"></a>00088 <spanclass="keywordtype">void</span> *<aclass="code"href="group__pools.html#ga152fb3460d6b7426f0b6803bb38a0070"title="Allocates an object from a memory pool.">chPoolAllocI</a>(<aclass="code"href="struct_memory_pool.html"title="Memory pool descriptor.">MemoryPool</a> *mp);
<aname="l00089"></a>00089 <spanclass="keywordtype">void</span> *<aclass="code"href="group__pools.html#gab86190d70893fe708c75570af6720bd5"title="Allocates an object from a memory pool.">chPoolAlloc</a>(<aclass="code"href="struct_memory_pool.html"title="Memory pool descriptor.">MemoryPool</a> *mp);
<aname="l00090"></a>00090 <spanclass="keywordtype">void</span><aclass="code"href="group__pools.html#gab5c6c04fd14fbeee2183ca955371c515"title="Releases (or adds) an object into (to) a memory pool.">chPoolFreeI</a>(<aclass="code"href="struct_memory_pool.html"title="Memory pool descriptor.">MemoryPool</a> *mp, <spanclass="keywordtype">void</span> *objp);
<aname="l00091"></a>00091 <spanclass="keywordtype">void</span><aclass="code"href="group__pools.html#ga978f8d038e8e981bf9e5a104b81c6cb6"title="Releases (or adds) an object into (to) a memory pool.">chPoolFree</a>(<aclass="code"href="struct_memory_pool.html"title="Memory pool descriptor.">MemoryPool</a> *mp, <spanclass="keywordtype">void</span> *objp);
Generated on Sun Oct 24 2010 09:40:37 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>