man pages section 9: DDI and DKI Kernel Functions
  Search only this book
View this book in:
Download this book in PDF (3391 KB)

net_hook_unregister(9F)

Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | Attributes | See Also

Name

    net_hook_unregister– disable a hook that was called in event processing

Synopsis

    #include <sys/neti.h>
    
    int net_hook_unregister(const net_data_t net, nethook_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(9F).

Description

    The net_hook_unregister() function disables the callback hooks that were registered with the net_hook_register() function.

Return Values

    If the net_hook_unregister() function succeeds, 0 is returned. Otherwise, an error indicating the problem encountered.

Context

    The net_hook_unregister() function may be called from user, kernel, or interrupt context.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Availability 

    SUNWcsu 

    Interface Stability 

    Committed 

See Also

SunOS 5.10  Last Revised 1 May 2008

Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | Attributes | See Also