MCPcopy Create free account
hub / github.com/F-Stack/f-stack / giant_ioctl

Function giant_ioctl

freebsd/kern/kern_conf.c:417–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static int
418giant_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
433static int
434giant_read(struct cdev *dev, struct uio *uio, int ioflag)

Callers

nothing calls this directly

Calls 4

dev_refthreadFunction · 0.85
dev_relthreadFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected