| 447 | } |
| 448 | |
| 449 | static int |
| 450 | giant_write(struct cdev *dev, struct uio *uio, int ioflag) |
| 451 | { |
| 452 | struct cdevsw *dsw; |
| 453 | int ref, retval; |
| 454 | |
| 455 | dsw = dev_refthread(dev, &ref); |
| 456 | if (dsw == NULL) |
| 457 | return (ENXIO); |
| 458 | mtx_lock(&Giant); |
| 459 | retval = dsw->d_gianttrick->d_write(dev, uio, ioflag); |
| 460 | mtx_unlock(&Giant); |
| 461 | dev_relthread(dev, ref); |
| 462 | return (retval); |
| 463 | } |
| 464 | |
| 465 | static int |
| 466 | giant_poll(struct cdev *dev, int events, struct thread *td) |
nothing calls this directly
no test coverage detected