Kernel functions hook_alloc(9F) NAME hook_alloc - allocate a hook_t structure SYNOPSIS #include hook_t *hook_alloc(const int version); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS version must always be the symbol HOOK_VERSION. DESCRIPTION This function allocates a hook_t structure, returning a pointer for the caller to use. RETURN VALUES If the call fails, NULL is returned, otherwise, a pointer to a hook_t structure is returned. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO hook(9s) hook_free(9f) SunOS 5.11 Last change: 25 March 2008 1