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

Function gicv3_its_sysctl_trace_enable

freebsd/arm64/arm64/gicv3_its.c:740–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740static int
741gicv3_its_sysctl_trace_enable(SYSCTL_HANDLER_ARGS)
742{
743 struct gicv3_its_softc *sc;
744 int rv;
745
746 sc = arg1;
747
748 rv = sysctl_handle_bool(oidp, &sc->trace_enable, 0, req);
749 if (rv != 0 || req->newptr == NULL)
750 return (rv);
751 if (sc->trace_enable)
752 gic_its_write_8(sc, GITS_TRKCTLR, 3);
753 else
754 gic_its_write_8(sc, GITS_TRKCTLR, 0);
755
756 return (0);
757}
758
759static int
760gicv3_its_sysctl_trace_regs(SYSCTL_HANDLER_ARGS)

Callers

nothing calls this directly

Calls 1

sysctl_handle_boolFunction · 0.85

Tested by

no test coverage detected