usrlib.html
来自「Vxworks API操作系统和驱动程序设计API。压缩的HTML文件」· HTML 代码 · 共 1,413 行 · 第 1/4 页
HTML
1,413 行
<pre>void td ( int taskNameOrId /* task name or task ID */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command deletes a specified task. It simply calls <b><a href="./taskLib.html#taskDelete">taskDelete</a>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./taskLib.html#taskDelete">taskDelete</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="version"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>version( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>version( )</strong> - print VxWorks version information</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void version (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command prints the VxWorks version number, the date this copy ofVxWorks was made, and other pertinent information.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><pre>-> versionVxWorks (for Mizar 7170) version 5.1Kernel: WIND version 2.1.Made on Tue Jul 27 20:26:23 CDT 1997.Boot line:enp(0,0)host:/usr/wpwr/target/config/mz7170/vxWorks e=90.0.0.50 h=90.0.0.4 u=targetvalue = 1 = 0x1</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="m"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>m( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>m( )</strong> - modify memory</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void m ( void * adrs, /* address to change */ int width /* width of unit to be modified (1, 2, 4, 8) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command prompts the user for modifications to memory in byte, shortword, or long word specified by <i>width</i>, starting at the specified address.It prints each address and the current contents of that address, in turn.If <i>adrs</i> or <i>width</i> is zero or absent, it defaults to the previous value.The user can respond in one of several ways:<dl><dt>RETURN<dd>Do not change this address, but continue, prompting at the next address.<dt><i>number</i><dd>Set the content of this address to <i>number</i>.<dt>. (dot)<dd>Do not change this address, and quit.<dt>EOF<dd>Do not change this address, and quit.</dl>All numbers entered and displayed are in hexadecimal.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./usrLib.html#mRegs">mRegs</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><p><hr><a name="d"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>d( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>d( )</strong> - display memory</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void d ( void * adrs, /* address to display (if 0, display next block */ int nunits, /* number of units to print (if 0, use default) */ int width /* width of displaying unit (1, 2, 4, 8) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command displays the contents of memory, starting at <i>adrs</i>.If <i>adrs</i> is omitted or zero, <b><a href="./usrLib.html#d">d</a>( )</b> displays the next memory block, startingfrom where the last <b><a href="./usrLib.html#d">d</a>( )</b> command completed.<p>Memory is displayed in units specified by <i>width</i>. If <i>nunits</i> is omittedor zero, the number of units displayed defaults to last use. If<i>nunits</i> is non-zero, that number of units is displayed and that numberthen becomes the default. If <i>width</i> is omitted or zero, it defaultsto the previous value. If <i>width</i> is an invalid number, it is set to 1.The valid values for <i>width</i> are 1, 2, 4, and 8. The number of units <b><a href="./usrLib.html#d">d</a>( )</b>displays is rounded up to the nearest number of full lines.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./usrLib.html#m">m</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="ld"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ld( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ld( )</strong> - load an object module into memory</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>MODULE_ID ld ( int syms, /* -1, 0, or 1 */ BOOL noAbort, /* TRUE = don't abort script on error */ char * name /* name of object module, NULL = standard input */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command loads an object module from a file or from standard input.The object module must be in UNIX <b>a.out</b> format. External references inthe module are resolved during loading. The <i>syms</i> parameter determines howsymbols are loaded; possible values are:<p> 0 - Add global symbols to the system symbol table.<br> 1 - Add global and local symbols to the system symbol table.<br> -1 - Add no symbols to the system symbol table.<p>If there is an error during loading (e.g., externals undefined, too manysymbols, etc.), then <b><a href="./shellLib.html#shellScriptAbort">shellScriptAbort</a>( )</b> is called to stop any script thatthis routine was called from. If <i>noAbort</i> is TRUE, errors are noted butignored.<p>The normal way of using <b><a href="./usrLib.html#ld">ld</a>( )</b> is to load all symbols (<i>syms</i> = 1) duringdebugging and to load only global symbols later.<p>The routine <b><a href="./usrLib.html#ld">ld</a>( )</b> is a <b>shell command</b>. That is, it is designed tobe used only in the shell, and not in code running on the target.In future releases, calling <b><a href="./usrLib.html#ld">ld</a>( )</b> directly from code may not besupported.<p></blockquote><h4>COMMON SYMBOLS</h4><blockquote><p>On the target shell, for the <b>ld</b> command only, common symbol behavior is determined by the value of the global variable, ldCommonMatchAll.The reasoning for ldCommonMatchAll matches the purposeof the windsh environment variable, <b>LD_COMMON_MATCH_ALL</b> as explained below.<p>If ldCommonMatchAll is set to TRUE (equivalent to windsh"<b>LD_COMMON_MATCH_ALL</b>=on"), the loader trys to match a common symbolwith an existing one. If a symbol with the same name is alreadydefined, the loader takes its address. Otherwise, the loader createsa new entry. If set to FALSE (equivalent to windsh"<b>LD_COMMON_MATCH_ALL</b>=off"), the loader does not try to find anexisting symbol. It creates an entry for each common symbol.<p></blockquote><h4>EXAMPLE</h4><blockquote><p>The following example loads the <b>a.out</b> file <b>module</b> from the default filedevice into memory, and adds any global symbols to the symbol table:<pre> -> ld <module</pre>This example loads <b>test.o</b> with all symbols:<pre> -> ld 1,0,"test.o"</pre></blockquote><h4>RETURNS</h4><blockquote><p><p><b>MODULE_ID</b>, orNULL if there are too many symbols, the object file format is invalid, orthere is an error reading the file.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./loadLib.html#top">loadLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="devs"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>devs( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>devs( )</strong> - list all system-known devices</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void devs (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command displays a list of all devices known to the I/O system.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./iosShow.html#iosDevShow">iosDevShow</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="lkup"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>lkup( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>lkup( )</strong> - list symbols</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void lkup ( char * substr /* substring to match */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command lists all symbols in the system symbol table whose namescontain the string <i>substr</i>. If <i>substr</i> is omitted or is 0, a shortsummary of symbol table statistics is printed. If <i>substr</i> is the emptystring (""), all symbols in the table are listed. <p>This command also displays symbols that are local, i.e., symbols found inthe system symbol table only because their module was loaded by <b><a href="./usrLib.html#ld">ld</a>( )</b>.<p>By default, <b><a href="./usrLib.html#lkup">lkup</a>( )</b> displays 22 symbols at a time. This can be changed by modifying the global variable <b>symLkupPgSz</b>. If this variable is setto 0, <b><a href="./usrLib.html#lkup">lkup</a>( )</b> displays all the symbols without interruption.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./symLib.html#top">symLib</a></b>, <b><a href="./symLib.html#symEach">symEach</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="lkAddr"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>lkAddr( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>lkAddr( )</strong> - list symbols whose values are near a specified value</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void lkAddr ( unsigned int addr /* address around which to look */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command lists the symbols in the system symbol table thatare near a specified value. The symbols that are displayed include:<ul><li>symbols whose values are immediately less than the specified value</li><li>symbols with the specified value</li><li>succeeding symbols, until at least 12 symbols have been displayed</li></ul><p>This command also displays symbols that are local, i.e., symbols found inthe system symbol table only because their module was loaded by <b><a href="./usrLib.html#ld">ld</a>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./symLib.html#top">symLib</a></b>, <b><a href="./symLib.html#symEach">symEach</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="mRegs"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>mRegs( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>mRegs( )</strong> - modify registers</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS mRegs ( char * regName, /* register name, NULL for all */ int taskNameOrId /* task name or task ID, 0 = default task */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command modifies the specified register for the specified task.If <i>taskNameOrId</i> is omitted or zero, the last task referenced is assumed.If the specified register is not found, it prints out the valid register listand returns ERROR. If no register is specified, it sequentially promptsthe user for new values for a task's registers. It displays each registerand the current contents of that register, in turn. The user can respondin one of several ways:<dl><dt>RETURN<dd>Do not change this register, but continue, prompting at the next register.<dt><i>number</i><dd>Set this register to <i>number</i>.<dt>. (dot)<dd>Do not change this register, and quit.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?