Skip to main content

Module refclock

Module refclock 

Source
Expand description

Reference-clock transports: gpsd shared memory, chrony’s SOCK protocol, and PTP hardware clocks. Reference-clock transports: gpsd’s shared memory, chrony’s SOCK protocol, and PTP hardware clocks.

These are the interfaces a GPS receiver or a NIC actually presents. The decision about whether a reading is usable lives in rusty_time_core::refclock; this module only gets the bytes.

Both wire layouts below are ABI-compatible with what gpsd and chrony already write, because the point of implementing them is to work with the receivers people already run.

Modules§

phc
PTP hardware clocks (/dev/ptp*).
shm
gpsd / ntpd shared-memory refclock (the SHM driver).
sock
chrony’s SOCK refclock protocol.