Module utc

Module utc 

Source
Expand description

! The time module is responsible for managing the UTC clock of the kernel. Starnix-specific UTC clock implementation.

UTC clock behaves differently in Fuchsia to what Starnix programs expect. This module abstracts the differences away. It provides a UTC clock that always runs. In contrast to Fuchsia UTC clock, which gets started only when the system is reasonably confident that the clock reading is accurate.

Starnix UTC clock is started from backstop on initialization, and jumps to actual UTC once Fuchsia provides actual UTC value.

Consult the Fuchsia UTC clock specification for details about UTC clock behavior specifically on Fuchsia.

Statics§

UTC_CLOCK_BASIC_RIGHTS
The basic rights to use when creating or duplicating a UTC clock. Restrict these on a case-by-case basis only.

Functions§

duplicate_real_utc_clock_handle
Creates a copy of the UTC clock handle currently in use in Starnix.
estimate_boot_deadline_from_utc
Estimates the boot time corresponding to utc, based on the currently operating Starnix UTC clock.
utc_now
Returns the current UTC time based on the Starnix UTC clock.