Skip to content

ethtool_harness

Ethtool integration for clock device discovery.

Functions:

get_canonicalized_clock

get_canonicalized_clock(identifier: str) -> ClockId

Get the canonical identifier of the clock specified by identifier.

Parameters:

  • identifier (str) –

    An interface name (e.g. "eth0"), PTP clock path (e.g. "/dev/ptp0") or the string "CLOCK_REALTIME"

Returns:

  • ClockId

    The canonicalized clock identifier.