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

📄 ifindexlib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 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>(&nbsp;)</b>  -  initializes library variables<br><b><a href="./ifIndexLib.html#ifIndexLibShutdown">ifIndexLibShutdown</a>(&nbsp;)</b>  -  frees library variables<br><b><a href="./ifIndexLib.html#ifIndexAlloc">ifIndexAlloc</a>(&nbsp;)</b>  -  return a unique interface index<br><b><a href="./ifIndexLib.html#ifIndexTest">ifIndexTest</a>(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ifIndexLibInit(&nbsp;)</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>(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ifIndexLibShutdown(&nbsp;)</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>(&nbsp;)</b> frees library internal structures.  <b><a href="./ifIndexLib.html#ifIndexLibInit">ifIndexLibInit</a>(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ifIndexAlloc(&nbsp;)</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>(&nbsp;)</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>(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ifIndexTest(&nbsp;)</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>(&nbsp;)</b> returns TRUE if <i>index</i> has already been allocated by<b>ifIndexLibAlloc(&nbsp;)</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 + -