| 364 | } |
| 365 | |
| 366 | static int |
| 367 | giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp) |
| 368 | { |
| 369 | struct cdevsw *dsw; |
| 370 | int ref, retval; |
| 371 | |
| 372 | dsw = dev_refthread(dev, &ref); |
| 373 | if (dsw == NULL) |
| 374 | return (ENXIO); |
| 375 | mtx_lock(&Giant); |
| 376 | retval = dsw->d_gianttrick->d_fdopen(dev, oflags, td, fp); |
| 377 | mtx_unlock(&Giant); |
| 378 | dev_relthread(dev, ref); |
| 379 | return (retval); |
| 380 | } |
| 381 | |
| 382 | static int |
| 383 | giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td) |
nothing calls this directly
no test coverage detected