| 380 | } |
| 381 | |
| 382 | static int |
| 383 | giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td) |
| 384 | { |
| 385 | struct cdevsw *dsw; |
| 386 | int ref, retval; |
| 387 | |
| 388 | dsw = dev_refthread(dev, &ref); |
| 389 | if (dsw == NULL) |
| 390 | return (ENXIO); |
| 391 | mtx_lock(&Giant); |
| 392 | retval = dsw->d_gianttrick->d_close(dev, fflag, devtype, td); |
| 393 | mtx_unlock(&Giant); |
| 394 | dev_relthread(dev, ref); |
| 395 | return (retval); |
| 396 | } |
| 397 | |
| 398 | static void |
| 399 | giant_strategy(struct bio *bp) |
nothing calls this directly
no test coverage detected