The ptp interface

The ptp interface allows access to the Precision Time Protocol (PTP) Hardware Clock subsystem in the Linux kernel, enabling the clock to be synced to sub-100 nanoseconds.

This interface is primarily intended to be used with Ubuntu Core.

Interface documentation:

See Interface management and Supported interfaces for further details on how interfaces are used.


Developer details

Auto-connect: no

See sysfs-ptp for device sysfs location and configuration details.

Code examples

The test code can be found in the snapd repository: snapd/interfaces/builtin/ptp_test.go at master · canonical/snapd · GitHub

The source code for the interface is in the snapd repository: snapd/interfaces/builtin/ptp.go at master · canonical/snapd · GitHub


Last updated 28 days ago.