| 296 | } |
| 297 | |
| 298 | static int |
| 299 | ntp_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 | |
| 312 | SYSCTL_NODE(_kern, OID_AUTO, ntp_pll, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, |
| 313 | ""); |
nothing calls this directly
no test coverage detected