<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>2014.1_doc: mem.h File Reference</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.4.5 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <div class="nav"> <a class="el" href="dir_U_3A_2Fdoxygen_5Fpublish_2Fsources_2Fbsp_2Fxilkernel_5Fv6_5F0_2Fsrc_2Finclude_2F.html">include</a> » <a class="el" href="dir_U_3A_2Fdoxygen_5Fpublish_2Fsources_2Fbsp_2Fxilkernel_5Fv6_5F0_2Fsrc_2Finclude_2Fsys_2F.html">sys</a></div> <h1>mem.h File Reference</h1><code>#include <<a class="el" href="config__param_8h.html">config/config_param.h</a>></code><br> <code>#include <<a class="el" href="config__cparam_8h.html">config/config_cparam.h</a>></code><br> <code>#include <<a class="el" href="ktypes_8h.html">sys/ktypes.h</a>></code><br> <code>#include <<a class="el" href="queue_8h.html">sys/queue.h</a>></code><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__malloc__info.html">_malloc_info</a></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="mem_8h.html#2474f08da78e9873ce0a65210c5bd2b6">alloc_pidq_mem</a> (queuep queue, unsigned int qtype, unsigned int qno)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Kernel level memory allocation definitions and declarations <hr><h2>Function Documentation</h2> <a class="anchor" name="2474f08da78e9873ce0a65210c5bd2b6"></a><!-- doxytag: member="mem.h::alloc_pidq_mem" ref="2474f08da78e9873ce0a65210c5bd2b6" args="(queuep queue, unsigned int qtype, unsigned int qno)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void alloc_pidq_mem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">queuep </td> <td class="mdname" nowrap> <em>queue</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>qtype</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>qno</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Allocate memory to the process ID queue's.<ul> <li>This includes the Ready_Q and Semaphore_Q. Initial memory is allocated for Ready queue, followed by the semaphore queue. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>queue</em> </td><td>is the queue of PIDs</td></tr> </table> </dl> </li></ul> <p> qtype is the queue type. Can be READY_Q or SEMA_Q<ul> <li>qno is the Queue number. (eg) There are N_PRIO number of Ready Queue. The qno denotes this number. Memory for queues is allocated sequentially. <dl compact><dt><b>Returns:</b></dt><dd><ul> <li>None </li></ul> </dd></dl> <dl compact><dt><b>Note:</b></dt><dd><ul> <li>SEMA_Q is valid only if CONFIG_SEMA is defined. </li></ul> </dd></dl> </li></ul> </td> </tr> </table> <hr size="1"><address style="align: right;"><small>Generated on Thu Feb 13 14:46:24 2014 for 2014.1_doc by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address> </body> </html>