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

Function giant_strategy

freebsd/kern/kern_conf.c:398–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398static void
399giant_strategy(struct bio *bp)
400{
401 struct cdevsw *dsw;
402 struct cdev *dev;
403 int ref;
404
405 dev = bp->bio_dev;
406 dsw = dev_refthread(dev, &ref);
407 if (dsw == NULL) {
408 biofinish(bp, NULL, ENXIO);
409 return;
410 }
411 mtx_lock(&Giant);
412 dsw->d_gianttrick->d_strategy(bp);
413 mtx_unlock(&Giant);
414 dev_relthread(dev, ref);
415}
416
417static int
418giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected