| 901 | } |
| 902 | |
| 903 | int |
| 904 | intr_event_suspend_handler(void *cookie) |
| 905 | { |
| 906 | struct intr_handler *handler = (struct intr_handler *)cookie; |
| 907 | struct intr_event *ie; |
| 908 | |
| 909 | if (handler == NULL) |
| 910 | return (EINVAL); |
| 911 | ie = handler->ih_event; |
| 912 | KASSERT(ie != NULL, |
| 913 | ("interrupt handler \"%s\" has a NULL interrupt event", |
| 914 | handler->ih_name)); |
| 915 | mtx_lock(&ie->ie_lock); |
| 916 | handler->ih_flags |= IH_SUSP; |
| 917 | intr_handler_barrier(handler); |
| 918 | mtx_unlock(&ie->ie_lock); |
| 919 | return (0); |
| 920 | } |
| 921 | |
| 922 | int |
| 923 | intr_event_resume_handler(void *cookie) |
no test coverage detected