1ldi_remove_event_handler(9KFe)rnel Functions for Drivelrdsi_remove_event_handler(9F)
2
3
4
6 ldi_remove_event_handler - remove an NDI event service callback
7
9 #include <sys/ddi_obsolete.h>
10
11 int ldi_remove_event_handler(ldi_handle_t lh,
12 ldi_callback_id_t id);
13
14
16 Obsolete
17
19 ldi_handle_t lh Layered handle representing the device for
20 which the event notification is requested.
21
22
23 ldi_callback_id_t id Unique system-wide registration ID returned by
24 ldi_add_event_handler(9F) upon successful reg‐
25 istration.
26
27
29 This function is obsolete and is only maintained for compatibility. Use
30 of this function is strongly discouraged. For equivalent functionality
31 provided by new interfaces, see ldi_ev_register_callbacks(9F) and
32 ldi_ev_remove_callbacks(9F).
33
34
35 The ldi_remove_event_handler() function removes the callback handler
36 specified by the registration ID (ldi_callback_id_t). Upon successful
37 removal, the callback handler is removed from the system and is not
38 invoked at the event occurance.
39
41 DDI_SUCCESS Callback handler removed successfully.
42
43
44 DDI_FAILURE Failed to remove callback handler.
45
46
48 This function can be called from user and kernel contexts only.
49
51 ldi_ev_register_callbacks(9F), ldi_ev_remove_callbacks(9F),
52 ldi_add_event_handler(9F), ldi_get_eventcookie(9F)
53
54
55 Writing Device Drivers
56
57
58
59SunOS 5.11 21 Aug 2007 ldi_remove_event_handler(9F)