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

Function ntp_sysctl

freebsd/kern/kern_ntptime.c:298–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static int
299ntp_sysctl(SYSCTL_HANDLER_ARGS)
300{
301 struct ntptimeval ntv; /* temporary structure */
302
303 memset(&ntv, 0, sizeof(ntv));
304
305 NTP_LOCK();
306 ntp_gettime1(&ntv);
307 NTP_UNLOCK();
308
309 return (sysctl_handle_opaque(oidp, &ntv, sizeof(ntv), req));
310}
311
312SYSCTL_NODE(_kern, OID_AUTO, ntp_pll, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
313 "");

Callers

nothing calls this directly

Calls 3

memsetFunction · 0.85
ntp_gettime1Function · 0.85
sysctl_handle_opaqueFunction · 0.85

Tested by

no test coverage detected