rtalloc Kernel Service
Purpose
Allocates a route.
Syntax
#include <sys/types.h>
#include <sys/errno.h>
#include <net/route.h>
void rtalloc ( ro)
register struct route *ro;
register struct route *ro;
Parameter
Item | Description |
---|---|
ro | Specifies the route. |
Description
The rtalloc kernel service allocates a route, which consists of a destination address and a reference to a routing entry.
Execution Environment
The rtalloc kernel service can be called from either the process or interrupt environment.
Return Values
The rtalloc service has no return values.
Example
To allocate a route, invoke the rtalloc kernel service as follows:
rtalloc(ro);