Crate clock_bound_d

Source
Expand description

ClockBound Daemon

This crate implements the ClockBound daemon

Modules§

signal
Unix signal handler registration.

Structs§

ParseError
Custom struct used for indicating a parsing error when parsing a ClockErrorBoundSource or ClockDisruptionNotificationSource from str.
PhcInfo
PhcInfo holds the refid of the PHC in chronyd (i.e. PHC0), and the interface on which the PHC is enabled.

Enums§

ChronyClockStatus
The status of the system clock reported by chronyd
ClockDisruptionState
Enum of possible Clock Disruption States exposed by the daemon.
ClockErrorBoundSource
Enum of possible input sources for obtaining the ClockErrorBound.

Constants§

CLOCKBOUND_SHM_DEFAULT_PATH

Statics§

FORCE_DISRUPTION_PENDING
Boolean value that tracks whether a manually triggered disruption is pending and need to be actioned.
FORCE_DISRUPTION_STATE
Boolean value that can be toggled to signal periods of forced disruption vs. “normal” periods.

Functions§

get_error_bound_sysfs_path
Gets the PHC Error Bound sysfs file path given a network interface name.
refid_to_u32
Helper for converting a string ref_id into a u32 for the chrony command protocol.
run