| 463 | } |
| 464 | |
| 465 | static int |
| 466 | giant_poll(struct cdev *dev, int events, struct thread *td) |
| 467 | { |
| 468 | struct cdevsw *dsw; |
| 469 | int ref, retval; |
| 470 | |
| 471 | dsw = dev_refthread(dev, &ref); |
| 472 | if (dsw == NULL) |
| 473 | return (ENXIO); |
| 474 | mtx_lock(&Giant); |
| 475 | retval = dsw->d_gianttrick->d_poll(dev, events, td); |
| 476 | mtx_unlock(&Giant); |
| 477 | dev_relthread(dev, ref); |
| 478 | return (retval); |
| 479 | } |
| 480 | |
| 481 | static int |
| 482 | giant_kqfilter(struct cdev *dev, struct knote *kn) |
nothing calls this directly
no test coverage detected