Kernel functions net_hook_unregister(9F) NAME net_hook_unregister - add hook to be called in event pro- cessing SYNOPSIS #include int net_hook_unregister(const net_data_t net, net_hook_t hook); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS net value returned from a successful call to net_protocol_register. hook value returned from a successful call to net_hook_register. DESCRIPTION Use of this function allows for hooks that describe call- backs to be registered with events that belong to a network protocol. A successful call to net_hook_unregister requires that a valid handle for a network protocol be provided (the first parameter, net) along with a hook description that includes a reference to an availabel event. After calling this function the callback hook will no longer be executed as a result of the event it was registered for being activated. RETURN VALUES If this function succeeds in removing the hook from the event, 0 is returned, else an error indicating the problem encountered. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SunOS 5.10 Last change: 25 March 2008 1 Kernel functions net_hook_unregister(9F) SEE ALSO net_event_register(9f), net_event_unregister(9f), net_hook_register(9f), net_protocol_register(9f), net_protocol_unregister(9f) SunOS 5.10 Last change: 25 March 2008 2