Skip to main content

Module discipline

Module discipline 

Source
Expand description

The clock-discipline loop: turn estimates into clock commands.

The platform driver (or the simulator) executes ClockCommands; this module only decides. Frequency corrections come straight from the regression slope — the estimator measures frequency directly, so no PLL time constant is needed (this is the chrony approach, and the reason for its fast convergence).

Structs§

Discipline
DisciplineConfig
Configuration mirroring the chrony.conf directives we honor.
Plan

Enums§

ChangeVerdict
What the maximum-change guard decided about a correction.
ClockCommand
What the platform driver should do right now.
LeapMode
What to do about a leap second the upstream source has announced.