?? void2.htm
字號:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./void2.files/filelist.xml">
<title> </title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>halex</o:Author>
<o:Revision>1</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Created>2003-05-25T16:51:00Z</o:Created>
<o:Pages>1</o:Pages>
<o:Words>154</o:Words>
<o:Characters>882</o:Characters>
<o:Company>lab706</o:Company>
<o:Lines>7</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>1083</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:UseFELayout/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋體;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋體";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋體;
mso-font-kerning:1.0pt;}
h1
{mso-style-next:正文;
margin-top:17.0pt;
margin-right:0cm;
margin-bottom:16.5pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:240%;
mso-pagination:lines-together;
page-break-after:avoid;
mso-outline-level:1;
font-size:22.0pt;
font-family:"Times New Roman";
mso-font-kerning:22.0pt;}
p.NewSectionPara, li.NewSectionPara, div.NewSectionPara
{mso-style-name:NewSectionPara;
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:widow-orphan;
tab-stops:22.5pt;
text-autospace:none;
font-size:10.0pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋體;
mso-fareast-language:RU;}
p.Descript, li.Descript, div.Descript
{mso-style-name:Descript;
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:widow-orphan;
tab-stops:22.5pt 27.0pt;
text-autospace:none;
font-size:10.0pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋體;
mso-fareast-language:RU;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
@page Section2
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section2
{page:Section2;}
-->
</style>
</head>
<body background="./系統的服務例程.files/image001.jpg" lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'>
<div class=Section1><b><span lang=EN-US style='font-size:14.0pt;mso-bidi-font-size:
9.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋體;mso-font-kerning:
22.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:
AR-SA'><br clear=all style='page-break-before:always'>
</span></b>
<h1><span lang=EN-US style='font-size:14.0pt;mso-bidi-font-size:9.0pt'>void
*OSMemGet(OS_MEM *pmem, INT8U *err);<o:p></o:p></span></h1>
<p class=Descript><b><span lang=EN-US style='font-family:"Courier New"'>OSMemGet()</span></b><span
lang=EN-US> is used to obtain a memory block from a memory partition.<span
style="mso-spacerun: yes"> </span>It is assumed that your application
will know the size of each memory block obtained.<span style="mso-spacerun:
yes"> </span>Also, your application MUST return the memory block (using </span><b><span
lang=EN-US style='font-family:"Courier New"'>OSMemPut()</span></b><span
lang=EN-US>) when it no longer needs it.<span style="mso-spacerun: yes">
</span>You can call </span><b><span lang=EN-US style='font-family:"Courier New"'>OSMemGet()</span></b><span
lang=EN-US> more than once until all memory blocks are allocated.</span></p>
<p class=NewSectionPara><span lang=EN-US><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<p class=NewSectionPara><b><span lang=EN-US>Arguments<o:p></o:p></span></b></p>
<p class=Descript><b><span lang=EN-US style='font-family:"Courier New"'>pmem</span></b><span
lang=EN-US> is a pointer to the memory partition control block that was
returned to your application from the </span><b><span lang=EN-US
style='font-family:"Courier New"'>OSMemCreate()</span></b><span lang=EN-US>
call.</span></p>
<p class=Descript><b><span lang=EN-US style='font-family:"Courier New"'>err</span></b><span
lang=EN-US> is a pointer to a variable which will be used to hold an error
code.<span style="mso-spacerun: yes"> </span></span><b><span lang=EN-US
style='font-family:"Courier New"'>OSMemGet()</span></b><span lang=EN-US> sets </span><b><span
lang=EN-US style='font-family:"Courier New"'>*err</span></b><span lang=EN-US>
to either:</span></p>
<p class=Descript style='margin-left:45.0pt;text-indent:-18.0pt;tab-stops:22.5pt 36.0pt'><span
lang=EN-US>1)<span style='mso-tab-count:1'> </span></span><b><span lang=EN-US
style='font-family:"Courier New"'>OS_NO_ERR</span></b><span lang=EN-US>, if a
memory block was available and returned to your application.</span></p>
<p class=Descript style='margin-left:45.0pt;text-indent:-18.0pt;tab-stops:22.5pt 36.0pt'><span
lang=EN-US>2)<span style='mso-tab-count:1'> </span></span><b><span lang=EN-US
style='font-family:"Courier New"'>OS_MEM_NO_FREE_BLKS</span></b><span
lang=EN-US>, if the memory partition doesn’t contain any more memory blocks to
allocate.</span></p>
<p class=NewSectionPara><span lang=EN-US><span style='mso-tab-count:1'> </span></span></p>
<p class=NewSectionPara><b><span lang=EN-US>Returned Value<o:p></o:p></span></b></p>
<p class=Descript><b><span lang=EN-US style='font-family:"Courier New"'>OSMemGet()</span></b><span
lang=EN-US> returns a pointer to the allocated memory block if one is
available.<span style="mso-spacerun: yes"> </span>If no memory block is
available from the memory partition, </span><b><span lang=EN-US
style='font-family:"Courier New"'>OSMemGet()</span></b><span lang=EN-US> will
return a </span><b><span lang=EN-US style='font-family:"Courier New"'>NULL</span></b><span
lang=EN-US> pointer.</span></p>
<p class=NewSectionPara><span lang=EN-US><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<p class=NewSectionPara><b><span lang=EN-US>Notes/Warnings<o:p></o:p></span></b></p>
<p class=Descript><span lang=EN-US>Memory partitions must be created before
they are used.</span></p>
<span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
"Times New Roman";mso-fareast-font-family:宋體;mso-ansi-language:EN-US;
mso-fareast-language:RU;mso-bidi-language:AR-SA'><br clear=all
style='mso-special-character:line-break;page-break-before:always'>
</span>
<p class=Descript><![if !supportEmptyParas]> <![endif]><span lang=EN-US><o:p></o:p></span></p>
</div>
<span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:
"Times New Roman";mso-fareast-font-family:宋體;mso-font-kerning:1.0pt;mso-ansi-language:
EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA'><br clear=all
style='page-break-before:always;mso-break-type:section-break'>
</span>
<div class=Section2 style='layout-grid:15.6pt'>
<p class=MsoNormal><span lang=EN-US><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -