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

Function giant_close

freebsd/kern/kern_conf.c:382–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382static int
383giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
384{
385 struct cdevsw *dsw;
386 int ref, retval;
387
388 dsw = dev_refthread(dev, &ref);
389 if (dsw == NULL)
390 return (ENXIO);
391 mtx_lock(&Giant);
392 retval = dsw->d_gianttrick->d_close(dev, fflag, devtype, td);
393 mtx_unlock(&Giant);
394 dev_relthread(dev, ref);
395 return (retval);
396}
397
398static void
399giant_strategy(struct bio *bp)

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