Kernel Functions for Drivers netinstancealloc(9F)
NAME
netinstancealloc - allocate a netinstancet structure
SYNOPSIS
#include
netinstancet *netinstancealloc(const int version);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
version must always be the symbol NETIVERSION.
DESCRIPTION
The netinstancealloc() function allocates a netinstancet
structure, returning a pointer for the caller to use.
RETURN VALUES
Upon success, netinstancealloc() returns a pointer to the
allocated netinstancet structure. On failure, it returns a
NUL pointer.
CONTEXT
The netinstancealloc() function may be called from user or
kernel context.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWcsu
Interface Stability Committed
SEE ALSO
netinstancefree(9F), attributes(5), netinjectt(9S)
SunOS 5.11 Last change: 1 May 2008 1
|