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

Rob nomail at example.com
Wed Dec 17 13:01:21 UTC 2014


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 within
>> >> > 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.



More information about the questions mailing list