[ntp:questions] NTP & PPS, part 2 ;)

Harlan Stenn stenn at ntp.org
Thu Dec 18 00:08:54 UTC 2014


Rob writes:
> Harlan Stenn <stenn at ntp.org> wrote:
> > Rob writes:
> >> Harlan Stenn <stenn at ntp.org> wrote:
> >> > Paul writes:
> >> >> On Tue, Dec 16, 2014 at 10:10 AM, Martin Burnicki <
> >> >> martin.burnicki at meinberg.de> wrote:
> >> >> 
> >> >> > OK, but what is the problem in using these IOCTLs directly from withi
> n
> >> >> > ntpd, via wrapper functions or directly? Several refclock drivers do 
> so.
> >> >> 
> >> >> You'll have to ask Harlan.
> >> >
> >> > Useful discussion and patches would be nice.
> >> 
> >> The code does not have to be patched because it already works, you only
> >> need to move the timepps.h file into the distributed source.  It provides
> >> the wrapper functions between the existing refclocks and the IOCTLs.
> >
> > Since you don't see my POV and I've looked at yours several times and
> > always see how doing what you suggest will cause horrible headaches and
> > problem, something else will have to shift.
> 
> When you really think that doing the above will cause headaches, then
> the direct use of IOCTLs will do even more so.  With my solution you
> can at least update the timepps.h file in the case there would be a
> change in the IOCTLs, when you access those directly you will have to
> solve the problem yourself.

Please post a copy of this timepps.h file that will work for all
versions of all OSes that are running NTP.

H



More information about the questions mailing list