I put a guy to work on making our GPIO/UDP TATT function available to
our embedded linux boxes the other day as an authoritative source for
ntpd.  My assumption was that I could write a source program that
received TATT messages over UDP, then forward the TATT message to a
kernel driver (he's writing) via ioctl() and that kernel driver would
simply unblock the reading of a /dev/pps device file when the GPIO
signal is asserted.  The tatt message is sent ~0.5 sec before the GPIO
and the value of TATT is what the time will be upon assertion.

I had hoped that it would be trivial to configure ntpd to do a
blocking read of /dev/pps and when it unblocks the value read from the
node would be the authoritative time.

He tells me that from what he can find, a shared memory interface
between the source and ntpd is simpler to implement.  What we are
unclear of at present is who "owns" the shared memory segment.  I
would speculate that the sender should create and own the segment as
the "server" of the data, and that ntpd creating and owning the
segment it reads timestamp data from would be an anti-pattern.

Can someone elaborate on which is implemented, and why?

Thanks!
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to