Lines Matching defs:event

170 	 * Initialize the LDI event subsystem
464 * LDI event manipulation functions
1689 * Any event handlers should have been unregistered by the
1699 * the event handlers) and then complain about having to do the
1710 "failed to unregister layered event handlers before "
1721 * Search the event callback list for callbacks with this
2850 "event callback", "ldi_add_event_handler"));
2858 LDI_EVENTCB((CE_NOTE, "%s: dip=0x%p, event=0x%p, "
2881 "event callback", "ldi_remove_event_handler"));
2897 * "new" LDI event framework. These events are serviced by the LDI event
2904 * NDI events: These are events which are serviced by the NDI event subsystem.
2905 * LDI subsystem just provides a thin wrapper around the NDI event interfaces
2942 * contracts corresponding to this LDI event.
2944 cmn_err(CE_PANIC, "Unknown LDI event: %s", evname);
2967 * contracts corresponding to this LDI event.
2969 cmn_err(CE_PANIC, "Unknown LDI event: %s", evname);
2989 * Not an LDI native event. Must be NDI event service.
3098 * First check if it is a LDI native event
3108 * Not a LDI native event. Try NDI event services
3216 * NDI event services only accept finalize
3218 cmn_err(CE_WARN, "%s: module: %s: NDI event cookie. "
3306 * LDI framework function to post a "notify" event to all layered drivers
3307 * that have registered for that event
3310 * LDI_EV_SUCCESS - registered callbacks allow event
3311 * LDI_EV_FAILURE - registered callbacks block event
3316 * to call while servicing a device event such as offline or degraded.
3319 ldi_invoke_notify(dev_info_t *dip, dev_t dev, int spec_type, char *event,
3332 ASSERT(event);
3333 ASSERT(ldi_native_event(event));
3334 ASSERT(ldi_ev_sync_event(event));
3337 (void *)dip, event));
3369 * Check if matching event
3372 if (strcmp(event, lec_event) != 0) {
3374 " event {%s,%s}. skipping", event, lec_event));
3387 /* We have a matching callback that allows the event to occur */
3420 * it is possible that in response to a notify event a
3427 /* Check if matching event */
3429 if (strcmp(event, lec_event) != 0) {
3431 "event: %s,%s, skipping", event, lec_event));
3441 * If LDI native event and LDI handle closed in context
3490 LDI_EVDBG((CE_NOTE, "ldi_ev_notify(): entered: event=%s, dip=%p",
3495 "negotiatable event", evname);
3544 * drivers that have registered callbacks for that event.
3548 * to call while servicing a device event such as offline or degraded.
3551 ldi_invoke_finalize(dev_info_t *dip, dev_t dev, int spec_type, char *event,
3564 ASSERT(event);
3565 ASSERT(ldi_native_event(event));
3569 " event=%s", (void *)dip, ldi_result, event));
3597 * Check if matching event
3600 if (strcmp(event, lec_event) != 0) {
3602 "matching event {%s,%s}. Skipping",
3603 event, lec_event));
3615 * If LDI native event and LDI handle closed in context
3732 cmn_err(CE_WARN, "No LDI event handler for id (%p)",
3741 cmn_err(CE_WARN, "failed to remove NDI event handler "
3748 LDI_EVDBG((CE_NOTE, "ldi_ev_remove_callbacks: NDI event "