| 348 | #define no_dump (dumper_t *)enodev |
| 349 | |
| 350 | static int |
| 351 | giant_open(struct cdev *dev, int oflags, int devtype, struct thread *td) |
| 352 | { |
| 353 | struct cdevsw *dsw; |
| 354 | int ref, retval; |
| 355 | |
| 356 | dsw = dev_refthread(dev, &ref); |
| 357 | if (dsw == NULL) |
| 358 | return (ENXIO); |
| 359 | mtx_lock(&Giant); |
| 360 | retval = dsw->d_gianttrick->d_open(dev, oflags, devtype, td); |
| 361 | mtx_unlock(&Giant); |
| 362 | dev_relthread(dev, ref); |
| 363 | return (retval); |
| 364 | } |
| 365 | |
| 366 | static int |
| 367 | giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp) |
nothing calls this directly
no test coverage detected