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

Function giant_write

freebsd/kern/kern_conf.c:449–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449static int
450giant_write(struct cdev *dev, struct uio *uio, int ioflag)
451{
452 struct cdevsw *dsw;
453 int ref, retval;
454
455 dsw = dev_refthread(dev, &ref);
456 if (dsw == NULL)
457 return (ENXIO);
458 mtx_lock(&Giant);
459 retval = dsw->d_gianttrick->d_write(dev, uio, ioflag);
460 mtx_unlock(&Giant);
461 dev_relthread(dev, ref);
462 return (retval);
463}
464
465static int
466giant_poll(struct cdev *dev, int events, struct thread *td)

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