1ddi_remove_event_handler(9KFe)rnel Functions for Drivedrdsi_remove_event_handler(9F)
2
3
4
6 ddi_remove_event_handler - remove an NDI event service callback handler
7
9 #include <sys/dditypes.h>
10 #include <sys/sunddi.h>
11
12 int ddi_remove_event_handler(ddi_registration_id_t id);
13
14
16 Solaris DDI specific (Solaris DDI).
17
19 ddi_registration_id_t id Unique system wide registration ID return
20 by ddi_add_event_handler(9F) upon success‐
21 ful registration.
22
23
25 The ddi_remove_event_handler() function removes the callback handler
26 specified by the registration id (ddi_registration_id_t). Upon success‐
27 ful removal, the callback handler is removed from the system and will
28 not be invoked in the face of the event.
29
31 DDI_SUCCESS Callback handler removed successfully.
32
33
34 DDI_FAILURE Failed to remove callback handler.
35
36
38 The ddi_remove_event_handler() function can be called from user and
39 kernel contexts only.
40
42 See attributes(5) for a description of the following attributes:
43
44
45
46
47 ┌─────────────────────────────┬─────────────────────────────┐
48 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │Stability Level │Committed │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 attributes(5), ddi_add_event_handler(9F), ddi_get_eventcookie(9F)
55
56
57 Writing Device Drivers
58
60 Device drivers must remove all registered callback handlers before
61 detach(9E) processing for that device instance is complete.
62
63
64
65SunOS 5.11 2 May 2003 ddi_remove_event_handler(9F)