AW: [PATCH 1/2] kern_ntptime.c: Import from FreeBSD

Gabriel.Moyano at dlr.de Gabriel.Moyano at dlr.de
Wed Mar 9 13:04:06 UTC 2022


> +#ifdef PPS_SYNC
> +SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shiftmax, CTLFLAG_RW,
> +    &pps_shiftmax, 0, "Max interval duration (sec) (shift)");
> +SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shift, CTLFLAG_RW,
> +    &pps_shift, 0, "Interval duration (sec) (shift)");
> +SYSCTL_LONG(_kern_ntp_pll, OID_AUTO, time_monitor, CTLFLAG_RD,
> +    &time_monitor, 0, "Last time offset scaled (ns)");
> +
> +SYSCTL_S64(_kern_ntp_pll, OID_AUTO, pps_freq, CTLFLAG_RD | CTLFLAG_MPSAFE,
> +    &pps_freq, 0,
> +    "Scaled frequency offset (ns/sec)"); SYSCTL_S64(_kern_ntp_pll,
> +OID_AUTO, time_freq, CTLFLAG_RD | CTLFLAG_MPSAFE,
> +    &time_freq, 0,
> +    "Frequency offset (ns/sec)");
> +#endif
> +

Is there anyway to port these SYSCTLs to rtems?


More information about the devel mailing list