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

Function fini_cdevsw

freebsd/kern/kern_conf.c:613–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static void
614fini_cdevsw(struct cdevsw *devsw)
615{
616 struct cdevsw *gt;
617
618 if (devsw->d_gianttrick != NULL) {
619 gt = devsw->d_gianttrick;
620 memcpy(devsw, gt, sizeof *devsw);
621 cdevsw_free_devlocked(gt);
622 devsw->d_gianttrick = NULL;
623 }
624 devsw->d_flags &= ~D_INIT;
625}
626
627static int
628prep_cdevsw(struct cdevsw *devsw, int flags)

Callers 1

destroy_devlFunction · 0.85

Calls 2

cdevsw_free_devlockedFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected