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

Function devctl_queue

freebsd/kern/subr_bus.c:658–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658static void
659devctl_queue(struct dev_event_info *dei)
660{
661 mtx_lock(&devsoftc.mtx);
662 STAILQ_INSERT_TAIL(&devsoftc.devq, dei, dei_link);
663 devsoftc.queued++;
664 cv_broadcast(&devsoftc.cv);
665 KNOTE_LOCKED(&devsoftc.sel.si_note, 0);
666 mtx_unlock(&devsoftc.mtx);
667 selwakeup(&devsoftc.sel);
668 if (devsoftc.async && devsoftc.sigio != NULL)
669 pgsigio(&devsoftc.sigio, SIGIO, 0);
670}
671
672/**
673 * @brief Send a 'notification' to userland, using standard ways

Callers 2

devctl_notifyFunction · 0.85
devaddqFunction · 0.85

Calls 5

cv_broadcastFunction · 0.85
selwakeupFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70
pgsigioFunction · 0.70

Tested by

no test coverage detected