📄 ifindexlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ifIndexLib.html - generated by refgen from ifIndexLib.c --> <title> ifIndexLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>ifIndexLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ifIndexLib</strong> - interface index library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./ifIndexLib.html#ifIndexLibInit">ifIndexLibInit</a>( )</b> - initializes library variables<br><b><a href="./ifIndexLib.html#ifIndexLibShutdown">ifIndexLibShutdown</a>( )</b> - frees library variables<br><b><a href="./ifIndexLib.html#ifIndexAlloc">ifIndexAlloc</a>( )</b> - return a unique interface index<br><b><a href="./ifIndexLib.html#ifIndexTest">ifIndexTest</a>( )</b> - returns true if an index has been allocated.<br><hr><a name="ifIndexLibInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ifIndexLibInit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ifIndexLibInit( )</strong> - initializes library variables</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ifIndexLibInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p><b><a href="./ifIndexLib.html#ifIndexLibInit">ifIndexLibInit</a>( )</b> resets library internal state. This function must be calledbefore any other functions in this library.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ifIndexLib.html#top">ifIndexLib</a></b><hr><a name="ifIndexLibShutdown"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ifIndexLibShutdown( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ifIndexLibShutdown( )</strong> - frees library variables</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ifIndexLibShutdown (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p><b><a href="./ifIndexLib.html#ifIndexLibShutdown">ifIndexLibShutdown</a>( )</b> frees library internal structures. <b><a href="./ifIndexLib.html#ifIndexLibInit">ifIndexLibInit</a>( )</b> must be called before the library can be used again.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ifIndexLib.html#top">ifIndexLib</a></b><hr><a name="ifIndexAlloc"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ifIndexAlloc( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ifIndexAlloc( )</strong> - return a unique interface index</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ifIndexAlloc (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p><b><a href="./ifIndexLib.html#ifIndexAlloc">ifIndexAlloc</a>( )</b> returns a unique integer to be used as an interfaceindex. The first index returned is 1. ERROR is returned if the libraryhas not been initialized by a call to <b><a href="./ifIndexLib.html#ifIndexLibInit">ifIndexLibInit</a>( )</b>;<p></blockquote><h4>RETURNS</h4><blockquote><p>interface index or ERROR</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ifIndexLib.html#top">ifIndexLib</a></b><hr><a name="ifIndexTest"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ifIndexTest( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ifIndexTest( )</strong> - returns true if an index has been allocated.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>BOOL ifIndexTest ( int ifIndex /* the index to test */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p><b><a href="./ifIndexLib.html#ifIndexTest">ifIndexTest</a>( )</b> returns TRUE if <i>index</i> has already been allocated by<b>ifIndexLibAlloc( )</b>. Otherwise returns FALSE. If the library has notbeen initialized returns FALSE. This function does not check if theindex actually belongs to a currently valid interface.<p></blockquote><h4>RETURNS</h4><blockquote><p>TRUE or FALSE</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ifIndexLib.html#top">ifIndexLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -