MCPcopy Create free account
hub / github.com/F-Stack/f-stack / intr_event_suspend_handler

Function intr_event_suspend_handler

freebsd/kern/kern_intr.c:903–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903int
904intr_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
922int
923intr_event_resume_handler(void *cookie)

Callers 1

nexus_suspend_intrFunction · 0.85

Calls 3

intr_handler_barrierFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected