Kernel Functions for Drivers hookalloc(9F)
NAME
hookalloc - allocate a hookt data structure
SYNOPSIS
#include
hookt *hookalloc(const int version);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
version must always be the symbol HOKVERSION.
DESCRIPTION
The hookalloc() function allocates a hookt structure,
returning a pointer for the caller to use.
RETURN VALUES
Upon success, hookalloc() returns a pointer to the allo-
cated hookt structure. On failure, hookalloc() returns a
NUL pointer.
CONTEXT
The hookalloc() 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
hookfree(9F), hookt(9S)
SunOS 5.11 Last change: 1 May 2008 1
|