VxWorks API Reference : OS Libraries
netLib - network interface library
netLibGeneralInit( ) - initialize the various network code
netLibInit( ) - initialize the network package
netTask( ) - network task entry point
This library contains the network task that runs low-level network interface routines in a task context. The network task executes and removes routines that were added to the job queue. This facility is used by network interfaces in order to have interrupt-level processing at task level.
The routine netLibInit( ) initializes the network and spawns the network task netTask( ). This is done automatically when INCLUDE_NET_LIB is defined.
The routine netHelp( ) in usrLib displays a summary of the network facilities available from the VxWorks shell.
netLib.h
routeLib, hostLib, netDrv, netHelp( ),
netLibGeneralInit( ) - initialize the various network code
STATUS netLibGeneralInit (void)
This code use to be in netLibInit. With virtual stacks, we need these specific routines to be executed on a per virtual stack bases.
OK/ERROR
netLibInit( ) - initialize the network package
STATUS netLibInit (void)
This creates the network task job queue, and spawns the network task netTask( ). It should be called once to initialize the network. This is done automatically when INCLUDE_NET_LIB is defined.
This function can only be called from within the kernel protection domain.
OK, or ERROR if network support cannot be initialized.
netTask( ) - network task entry point
void netTask (void)
This routine is the VxWorks network support task. Most of the VxWorks network runs in this task's context.
To prevent an application task from monopolizing the CPU if it is in an infinite loop or is never blocked, the priority of netTask( ) relative to an application may need to be adjusted. Network communication may be lost if netTask( ) is "starved" of CPU time. The default task priority of netTask( ) is 50. Use taskPrioritySet( ) to change the priority of a task.
This task is spawned by netLibInit( ).
This function can only be called from within the kernel protection domain.
N/A
netLib, netLibInit( )