VxWorks API Reference : OS Libraries
netLib - network interface library
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( ),
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.
Under VxWorks AE, you can call this function from within the kernel protection domain only. This restriction does not apply under non-AE versions of VxWorks.
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( ).
Under VxWorks AE, you can call this function from within the kernel protection domain only. This restriction does not apply under non-AE versions of VxWorks.
N/A
netLib, netLibInit( )