Data Structures for Drivers hookt(9S)
NAME
hookt - callback structure for subscribing to netinfo
events
SYNOPSIS
#include
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
DESCRIPTION
The hookt data structure defines a callback that is to be
inserted into a networking event. This data structure must
be allocated with a call to hookalloc() and released with a
call to hookfree().
STRUCTURE MEMBERS
hookfunct hfunc; /* callback function to invoke */
char *hname; /* unique name given to the hook */
int hflags;
hookhintt hhint; /* insertion hint type */
uintptrt hhintvalue; /* used with hhint */
void *harg; /* value to pass into hfunc */
typedef int (*hookfunct)(neteventt token, hookdatat info,
void *);
HINT TYPES
Hook hints are hints that are used at the time of insertion
and are not rules that enforce where a hook lives for its
entire lifetime on an event. The valid values for the hhint
field are:
HNONE Insert the hook wherever convenient.
HFIRST Place the hook first on the list of hooks.
HLAST Place the hook last on the list of hooks.
HBEFORE Place the hook before another hook on the list
of hooks. The value in hhintvalue must be a
pointer to the name of another hook.
HAFTER Place the hook after another hook on the list
of hooks. The value in hhintvalue must be a
pointer to the name of another hook.
SunOS 5.11 Last change: 1 May 2008 1
Data Structures for Drivers hookt(9S)
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
SEE ALSO
netinfo(9F)
SunOS 5.11 Last change: 1 May 2008 2
|