Query: ddi_remove_event_handler
OS: opensolaris
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ddi_remove_event_handler(9F) Kernel Functions for Drivers ddi_remove_event_handler(9F)NAMEddi_remove_event_handler - remove an NDI event service callback handlerSYNOPSIS#include <sys/dditypes.h> #include <sys/sunddi.h> int ddi_remove_event_handler(ddi_registration_id_t id);INTERFACE LEVELSolaris DDI specific (Solaris DDI).PARAMETERSddi_registration_id_t id Unique system wide registration ID return by ddi_add_event_handler(9F) upon successful registration.DESCRIPTIONThe ddi_remove_event_handler() function removes the callback handler specified by the registration id (ddi_registration_id_t). Upon suc- cessful removal, the callback handler is removed from the system and will not be invoked in the face of the event.RETURN VALUESDDI_SUCCESS Callback handler removed successfully. DDI_FAILURE Failed to remove callback handler.CONTEXTThe ddi_remove_event_handler() function can be called from user and kernel contexts only.ATTRIBUTESSee attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Stability Level |Committed | +-----------------------------+-----------------------------+SEE ALSOattributes(5), ddi_add_event_handler(9F), ddi_get_eventcookie(9F) Writing Device DriversNOTESDevice drivers must remove all registered callback handlers before detach(9E) processing for that device instance is complete. SunOS 5.11 2 May 2003 ddi_remove_event_handler(9F)