| 553 | } |
| 554 | |
| 555 | static int |
| 556 | devpoll(struct cdev *dev, int events, struct thread *td) |
| 557 | { |
| 558 | int revents = 0; |
| 559 | |
| 560 | mtx_lock(&devsoftc.mtx); |
| 561 | if (events & (POLLIN | POLLRDNORM)) { |
| 562 | if (!STAILQ_EMPTY(&devsoftc.devq)) |
| 563 | revents = events & (POLLIN | POLLRDNORM); |
| 564 | else |
| 565 | selrecord(td, &devsoftc.sel); |
| 566 | } |
| 567 | mtx_unlock(&devsoftc.mtx); |
| 568 | |
| 569 | return (revents); |
| 570 | } |
| 571 | |
| 572 | static int |
| 573 | devkqfilter(struct cdev *dev, struct knote *kn) |
nothing calls this directly
no test coverage detected