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

Function sysctl_kern_clockrate

freebsd/kern/kern_clock.c:766–779  ·  view source on GitHub ↗

* Return information about system clocks. */

Source from the content-addressed store, hash-verified

764 * Return information about system clocks.
765 */
766static int
767sysctl_kern_clockrate(SYSCTL_HANDLER_ARGS)
768{
769 struct clockinfo clkinfo;
770 /*
771 * Construct clockinfo structure.
772 */
773 bzero(&clkinfo, sizeof(clkinfo));
774 clkinfo.hz = hz;
775 clkinfo.tick = tick;
776 clkinfo.profhz = profhz;
777 clkinfo.stathz = stathz ? stathz : hz;
778 return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
779}
780
781SYSCTL_PROC(_kern, KERN_CLOCKRATE, clockrate,
782 CTLTYPE_STRUCT|CTLFLAG_RD|CTLFLAG_MPSAFE,

Callers

nothing calls this directly

Calls 2

bzeroFunction · 0.85
sysctl_handle_opaqueFunction · 0.85

Tested by

no test coverage detected