| 656 | } |
| 657 | |
| 658 | static void |
| 659 | devctl_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 |
no test coverage detected