📄 netlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/netLib.html - generated by refgen from netLib.c --> <title> netLib </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>netLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>netLib</strong> - network interface library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./netLib.html#netLibInit">netLibInit</a></i>( )</b> - initialize the network package<br><b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b> - network task entry point<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains the network task that runs low-level networkinterface routines in a task context. The network task executes andremoves routines that were added to the job queue. This facility is usedby network interfaces in order to have interrupt-level processing attask level.<p>The routine <b><i><a href="./netLib.html#netLibInit">netLibInit</a></i>( )</b> initializes the network and spawns the networktask <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b>. This is done automatically when the configurationmacro <b>INCLUDE_NETWORK</b> is defined.<p>The routine <b><i><a href="./usrLib.html#netHelp">netHelp</a></i>( )</b> in <b><a href="./usrLib.html#top">usrLib</a></b> displays a summary of the network facilitiesavailable from the VxWorks shell.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>netLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netLib.html#top">netLib</a></b>, <b><a href="./routeLib.html#top">routeLib</a></b>, <b><a href="./hostLib.html#top">hostLib</a></b>, <b><a href="./netDrv.html#top">netDrv</a></b>, <b><i><a href="./usrLib.html#netHelp">netHelp</a></i>( )</b>, <i>VxWorks Programmer's Guide: Network</i><hr><a name="netLibInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>netLibInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>netLibInit</i>( )</strong> - initialize the network package</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS netLibInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This creates the network task jobqueue, and spawns the network task <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b>. It should be called once toinitialize the network. This is done automatically when theconfiguration macro <b>INCLUDE_NETWORK</b> is defined.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if network support cannot be initialized.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netLib.html#top">netLib</a></b>, usrConfig, <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b><hr><a name="netTask"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>netTask</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>netTask</i>( )</strong> - network task entry point</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void netTask (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is the VxWorks network support task. Most of the VxWorksnetwork runs in this task's context.<p></blockquote><h4>NOTE</h4><blockquote><p>To prevent an application task from monopolizing the CPU if it isin an infinite loop or is never blocked, the priority of <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b>relative to an application may need to be adjusted. Network communicationmay be lost if <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b> is "starved" of CPU time. The default taskpriority of <b><i><a href="./netLib.html#netTask">netTask</a></i>( )</b> is 50. Use <b><i><a href="./taskLib.html#taskPrioritySet">taskPrioritySet</a></i>( )</b> to change the priorityof a task.<p>This task is spawned by <b><i><a href="./netLib.html#netLibInit">netLibInit</a></i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><i><a href="./netLib.html#netLibInit">netLibInit</a></i>( )</b><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -