📄 memshow.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/memShow.html - generated by refgen from memShow.c --> <title> memShow </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>memShow</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>memShow</strong> - memory show routines </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./memShow.html#memShowInit">memShowInit</a></i>( )</b> - initialize the memory partition show facility<br><b><i><a href="./memShow.html#memShow">memShow</a></i>( )</b> - show system memory partition blocks and statistics<br><b><i><a href="./memShow.html#memPartShow">memPartShow</a></i>( )</b> - show partition blocks and statistics<br><b><i><a href="./memShow.html#memPartInfoGet">memPartInfoGet</a></i>( )</b> - get partition information<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains memory partition information display routines.To use this facility, it must first be installed using <b><i><a href="./memShow.html#memShowInit">memShowInit</a></i>( )</b>,which is called automatically when the memory partition show facilityis configured into VxWorks using either of the following methods:<ul><li>If you use the configuration header files, define<b>INCLUDE_SHOW_ROUTINES</b> in <b>config.h</b>.</li><li>If you use the Tornado project facility, select <b>INCLUDE_MEM_SHOW</b>. </ul><p><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./memShow.html#top">memShow</a></b>, <b><a href="./memLib.html#top">memLib</a></b>, <b><a href="./memPartLib.html#top">memPartLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell, </i>windsh, <i>Tornado User's Guide: Shell</i><hr><a name="memShowInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>memShowInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>memShowInit</i>( )</strong> - initialize the memory partition show facility</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void memShowInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine links the memory partition show facility into the VxWorks system.These routines are included automatically when this show facility isconfigured into VxWorks using either of the following methods:<ul><li> If you use the configuration header files, define<b>INCLUDE_SHOW_ROUTINES</b> in <b>config.h</b>.</li><li> If you use the Tornado project facility, select <b>INCLUDE_MEM_SHOW</b>.</ul><p></blockquote><h4>RETURNS</h4><blockquote><p><p> N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./memShow.html#top">memShow</a></b><hr><a name="memShow"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>memShow</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>memShow</i>( )</strong> - show system memory partition blocks and statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void memShow ( int type /* 1 = list all blocks in the free list */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays statistics about the available and allocated memoryin the system memory partition. It shows the number of bytes, the numberof blocks, and the average block size in both free and allocated memory,and also the maximum block size of free memory. It also shows the numberof blocks currently allocated and the average allocated block size.<p>In addition, if <i>type</i> is 1, the routine displays a list of all the blocks inthe free list of the system partition.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><pre> -> memShow 1 FREE LIST: num addr size --- ---------- ---------- 1 0x3fee18 16 2 0x3b1434 20 3 0x4d188 2909400 SUMMARY: status bytes blocks avg block max block ------ --------- -------- ---------- ---------- current free 2909436 3 969812 2909400 alloc 969060 16102 60 - cumulative alloc 1143340 16365 69 -</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./memShow.html#top">memShow</a></b>, <b><i><a href="./memShow.html#memPartShow">memPartShow</a></i>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i>windsh, <i>Tornado User's Guide: Shell</i><hr><a name="memPartShow"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>memPartShow</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>memPartShow</i>( )</strong> - show partition blocks and statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS memPartShow ( PART_ID partId, /* partition ID */ int type /* 0 = statistics, 1 = statistics & list */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays statistics about the available and allocated memoryin a specified memory partition. It shows the number of bytes, the numberof blocks, and the average block size in both free and allocated memory,and also the maximum block size of free memory. It also shows the numberof blocks currently allocated and the average allocated block size.<p>In addition, if <i>type</i> is 1, the routine displays a list of all the blocksin the free list of the specified partition.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>ERRNO</h4><blockquote><p>S_smObjLib_NOT_INITIALIZED<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><i><a href="./memShow.html#memShow">memShow</a></i>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i>windsh, <i>Tornado User's Guide: Shell</i><hr><a name="memPartInfoGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>memPartInfoGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>memPartInfoGet</i>( )</strong> - get partition information</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS memPartInfoGet ( PART_ID partId, /* partition ID */ MEM_PART_STATS * ppartStats /* partition stats structure */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine takes a partition ID and a pointer to a <b>MEM_PART_STATS</b> structure.All the parameters of the structure are filled in with the current partitioninformation.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK if the structure has valid data, otherwise ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><i><a href="./memShow.html#memShow">memShow</a></i>( )</b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -