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