| 415 | } |
| 416 | |
| 417 | static int |
| 418 | giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) |
| 419 | { |
| 420 | struct cdevsw *dsw; |
| 421 | int ref, retval; |
| 422 | |
| 423 | dsw = dev_refthread(dev, &ref); |
| 424 | if (dsw == NULL) |
| 425 | return (ENXIO); |
| 426 | mtx_lock(&Giant); |
| 427 | retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); |
| 428 | mtx_unlock(&Giant); |
| 429 | dev_relthread(dev, ref); |
| 430 | return (retval); |
| 431 | } |
| 432 | |
| 433 | static int |
| 434 | giant_read(struct cdev *dev, struct uio *uio, int ioflag) |
nothing calls this directly
no test coverage detected