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

Function giant_poll

freebsd/kern/kern_conf.c:465–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465static int
466giant_poll(struct cdev *dev, int events, struct thread *td)
467{
468 struct cdevsw *dsw;
469 int ref, retval;
470
471 dsw = dev_refthread(dev, &ref);
472 if (dsw == NULL)
473 return (ENXIO);
474 mtx_lock(&Giant);
475 retval = dsw->d_gianttrick->d_poll(dev, events, td);
476 mtx_unlock(&Giant);
477 dev_relthread(dev, ref);
478 return (retval);
479}
480
481static int
482giant_kqfilter(struct cdev *dev, struct knote *kn)

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