From: Yu Watanabe Date: Mon, 6 Aug 2018 07:16:21 +0000 (+0900) Subject: core: add comments about timestamps stored in manager X-Git-Tag: v240~827^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bc740f480e03c3a8ecef39bb1eba75852fd90d5;p=thirdparty%2Fsystemd.git core: add comments about timestamps stored in manager --- diff --git a/src/core/manager.h b/src/core/manager.h index 342258fcf9e..907eb05f5c5 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -53,6 +53,27 @@ typedef enum StatusType { STATUS_TYPE_EMERGENCY, } StatusType; +/* Notes: + * 1. TIMESTAMP_FIRMWARE, TIMESTAMP_LOADER, TIMESTAMP_KERNEL, TIMESTAMP_INITRD, + * TIMESTAMP_SECURITY_START, and TIMESTAMP_SECURITY_FINISH are set only when + * the manager is system and not running under container environment. + * + * 2. The monotonic timestamp of TIMESTAMP_KERNEL is always zero. + * + * 3. The realtime timestamp of TIMESTAMP_KERNEL will be unset if the system does not + * have RTC. + * + * 4. TIMESTAMP_FIRMWARE and TIMESTAMP_LOADER will be unset if the system does not + * have RTC, or systemd is built without EFI support. + * + * 5. The monotonic timestamps of TIMESTAMP_FIRMWARE and TIMESTAMP_LOADER are stored as + * negative of the actual value. + * + * 6. TIMESTAMP_USERSPACE is the timestamp of when the manager was started. + * + * 7. TIMESTAMP_INITRD_* are set only when the system is booted with an initrd. + */ + typedef enum ManagerTimestamp { MANAGER_TIMESTAMP_FIRMWARE, MANAGER_TIMESTAMP_LOADER,