* Return the ie_source field from the intr_event an intr_handler is * associated with. */
| 703 | * associated with. |
| 704 | */ |
| 705 | void * |
| 706 | intr_handler_source(void *cookie) |
| 707 | { |
| 708 | struct intr_handler *ih; |
| 709 | struct intr_event *ie; |
| 710 | |
| 711 | ih = (struct intr_handler *)cookie; |
| 712 | if (ih == NULL) |
| 713 | return (NULL); |
| 714 | ie = ih->ih_event; |
| 715 | KASSERT(ie != NULL, |
| 716 | ("interrupt handler \"%s\" has a NULL interrupt event", |
| 717 | ih->ih_name)); |
| 718 | return (ie->ie_source); |
| 719 | } |
| 720 | |
| 721 | /* |
| 722 | * If intr_event_handle() is running in the ISR context at the time of the call, |
no outgoing calls
no test coverage detected