⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 streams.doc27.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="../../wrs.css"><title>Configuration        </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="../../icons/contents.gif"></a><a href="streams.doc26.html"><img border="0" alt="[Prev]" src="../../icons/prev.gif"></a><a href="x-streamsBiblio.doc.html"><img border="0" alt="[Next]" src="../../icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="72453" class="autotag">6.2&nbsp;&nbsp;WindNet STREAMS Configuration</a></i></h3></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72454" class="autotag"> </a><a href="streams.doc27.html#72458"><i class="title">Table&nbsp;9</i></a> shows the constants that can be modified to customize the operational parameters of the services provided with WindNet STREAMS.<p class="table"><h4 class="EntityTitle"><a name="72458" class="autotag"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 9.  &nbsp;&nbsp;WindNet STREAMS Configuration Constants with Default Values</font></a></h4><table border="0" cellpadding="3" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="72462" class="autotag"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Constant</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeadingC" align="center"><a name="72464" class="autotag"> </a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Default Value</font></b></div></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"></th><th rowspan="1" colspan="1"></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72470" class="autotag"> </a><b>STREAMS_PUSH_MAX</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72472" class="autotag"> </a>9</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72474" class="autotag"> </a><b>STREAMS_MSGSZ_MAX</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72476" class="autotag"> </a>4096</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72478" class="autotag"> </a><b>STREAMS_CTLSZ_MAX</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72480" class="autotag"> </a>1024</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72482" class="autotag"> </a><b>STREAMS_MEM_MAX</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72484" class="autotag"> </a>102400</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72486" class="autotag"> </a><b>STREAMS_MEM_PART_ADDR</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72488" class="autotag"> </a>0</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72490" class="autotag"> </a><b>STREAMS_MEM_PART_SIZE</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72492" class="autotag"> </a>0</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72494" class="autotag"> </a><b>STREAMS_STRERR_OUTPUT_DIR</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72496" class="autotag"> </a><b class="file">/tmp</b></div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="72498" class="autotag"> </a><b>STREAMS_STRACE_OUTPUT_DIR</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="72500" class="autotag"> </a><b class="file">/tmp</b></div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="91238" class="autotag"> </a><b>STREAMS_PROTO_INIT_RTN</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="91240" class="autotag"> </a>The name of the protocol initialization hook routine.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1></td><td colspan=1 rowspan=1></td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p><b></b></p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="89474" class="autotag">6.2.1&nbsp;&nbsp;<b>STREAMS_PUSH_MAX </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72506" class="autotag"> </a>This constant is used to specify the maximum number of STREAMS modules that WindNet STREAMS allows to be stacked on top of a single STREAMS data path.</p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72507" class="autotag">6.2.2&nbsp;&nbsp;<b>STREAMS_MSGSZ_MAX</b>  </a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72508" class="autotag"> </a>This constant designates the maximum number of bytes that can be placed by a user application in a WindNet STREAMS <b class="keyword">M_DATA </b>message.  The application creates an <b class="keyword">M_DATA</b> message by calling <b class="routine"><i class="routine">write</i></b><b>(&nbsp;)</b>, <b class="routine"><i class="routine">putmsg</i></b><b>(&nbsp;)</b> or <b class="routine"><i class="routine">putpmsg</i></b><b>(&nbsp;)</b>.  In the case of a <b class="routine"><i class="routine">write</i></b><b>(&nbsp;)</b> call, a message greater than the maximum specified is broken into messages of size <b>STREAMS_MSGSZ_MAX</b>.  With <b class="routine"><i class="routine">putmsg</i></b><b>(&nbsp;)</b> and <b class="routine"><i class="routine">putpmsg</i></b><b>(&nbsp;)</b>, a data part of the message greater than the specified maximum yields the error <b>ERANGE</b>; a message of any size can be allowed by setting the value of <b>STREAMS_MSGSZ_MAX</b> to 0.  </p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72509" class="autotag">6.2.3&nbsp;&nbsp;<b>STREAMS_CTLSZ_MAX </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72510" class="autotag"> </a>This constant specifies the maximum number of bytes that can be placed in a control part of a WindNet STREAMS <b class="keyword">M_PROTO</b> or <b class="keyword">M_PCPROTO</b> message by a user application.  The application creates either type of message with <b class="routine"><i class="routine">putmsg</i></b><b>(&nbsp;)</b> or <b class="routine"><i class="routine">putpmsg</i></b><b>(&nbsp;)</b>.  If either of these calls exceeds the value set in <b>STREAMS_MSGSZ_MAX </b>for the control portion of the message,<b> </b>the routines generate the error <b>ERANGE</b>.</p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72511" class="autotag">6.2.4&nbsp;&nbsp;<b>STREAMS_MEM_MAX </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72512" class="autotag"> </a>This constant sets the maximum size of memory that can be allocated by WindNet STREAMS from the system memory pool or a user-specified partition.  For applications that demand large amounts of memory, you should increase the value of this constant accordingly. </p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72513" class="autotag">6.2.5&nbsp;&nbsp;<b>STREAMS_MEM_PART_ADDR </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72514" class="autotag"> </a>This constant specifies a default value that indicates that memory used by WindNet STREAMS must be allocated from the system pool.  If a memory address is specified, the system attempts to create a memory partition using this address.  If the partition cannot be created, the WindNet STREAMS package fails its initialization. </p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72515" class="autotag">6.2.6&nbsp;&nbsp;<b>STREAMS_MEM_PART_SIZE </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72516" class="autotag"> </a>This constant should be set to the maximum size of the memory partition.  Its value should never exceed the value set for the constant <b>STREAMS_MEM_MAX</b>.</p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72517" class="autotag">6.2.7&nbsp;&nbsp;<b>STREAMS_STRERR_OUTPUT_DIR </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72518" class="autotag"> </a>This constant is set to the location where the files created by the <b class="command">strerr</b> utility will be stored.  The value of this constant is ignored if the <b class="command">strerr</b> utility is not included.</p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="72519" class="autotag">6.2.8&nbsp;&nbsp;<b>STREAMS_STRACE_OUTPUT_DIR </b></a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72520" class="autotag"> </a>This constant is set to the location where the files created by the <b class="command">strace </b>utility will be stored.  The value of this constant is ignored if <b class="command">strace </b>is not included.</p></dd></dl></dd></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="91236" class="autotag">6.2.9&nbsp;&nbsp;<b>STREAMS_PROTO_INIT_RTN</b> </a></i></h4></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="91241" class="autotag"> </a>This constant is set to the name of the user-provided protocol initialization hook routine.</p></dd></dl></dd></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="../../icons/contents.gif"></a><a href="streams.doc26.html"><img border="0" alt="[Prev]" src="../../icons/prev.gif"></a><a href="x-streamsBiblio.doc.html"><img border="0" alt="[Next]" src="../../icons/next.gif"></a></p></body></html><!---This file generated March 12, 1998, 04:42PM PSTby WRS Documentation (jeff), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 3.5.0    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -