VxWorks API Reference : OS Libraries
ifIndexLib - interface index library
ifIndexLibInit( ) - initializes library variables
ifIndexLibShutdown( ) - frees library variables
ifIndexAlloc( ) - return a unique interface index
ifIndexTest( ) - returns true if an index has been allocated.
ifIndexLibInit( ) - initializes library variables
void ifIndexLibInit (void)
ifIndexLibInit( ) resets library internal state. This function must be called before any other functions in this library.
N/A
ifIndexLibShutdown( ) - frees library variables
void ifIndexLibShutdown (void)
ifIndexLibShutdown( ) frees library internal structures. ifIndexLibInit( ) must be called before the library can be used again.
N/A
ifIndexAlloc( ) - return a unique interface index
int ifIndexAlloc (void)
ifIndexAlloc( ) returns a unique integer to be used as an interface index. The first index returned is 1. ERROR is returned if the library has not been initialized by a call to ifIndexLibInit( );
interface index or ERROR
ifIndexTest( ) - returns true if an index has been allocated.
BOOL ifIndexTest ( int ifIndex /* the index to test */ )
ifIndexTest( ) returns TRUE if index has already been allocated by ifIndexLibAlloc( ). Otherwise returns FALSE. If the library has not been initialized returns FALSE. This function does not check if the index actually belongs to a currently valid interface.
TRUE or FALSE