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

Function giant_read

freebsd/kern/kern_conf.c:433–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433static int
434giant_read(struct cdev *dev, struct uio *uio, int ioflag)
435{
436 struct cdevsw *dsw;
437 int ref, retval;
438
439 dsw = dev_refthread(dev, &ref);
440 if (dsw == NULL)
441 return (ENXIO);
442 mtx_lock(&Giant);
443 retval = dsw->d_gianttrick->d_read(dev, uio, ioflag);
444 mtx_unlock(&Giant);
445 dev_relthread(dev, ref);
446 return (retval);
447}
448
449static int
450giant_write(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