iPXE
|
Time source. More...
#include <sys/time.h>
#include <ipxe/api.h>
#include <config/time.h>
#include <ipxe/null_time.h>
#include <ipxe/efi/efi_time.h>
#include <ipxe/linux/linux_time.h>
#include <bits/time.h>
Go to the source code of this file.
Macros | |
#define | TIME_INLINE(_subsys, _api_func) SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func ) |
Calculate static inline time API function name. More... | |
#define | PROVIDE_TIME(_subsys, _api_func, _func) PROVIDE_SINGLE_API ( TIME_PREFIX_ ## _subsys, _api_func, _func ) |
Provide a time API implementation. More... | |
#define | PROVIDE_TIME_INLINE(_subsys, _api_func) PROVIDE_SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func ) |
Provide a static inline time API implementation. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
time_t | time_now (void) |
Get current time in seconds (ignoring system clock offset) More... | |
static | __attribute__ ((always_inline)) void time_adjust(signed long delta) |
Adjust system clock. More... | |
Variables | |
signed long | time_offset |
Current system clock offset. More... | |
Time source.
Definition in file time.h.
#define TIME_INLINE | ( | _subsys, | |
_api_func | |||
) | SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func ) |
#define PROVIDE_TIME | ( | _subsys, | |
_api_func, | |||
_func | |||
) | PROVIDE_SINGLE_API ( TIME_PREFIX_ ## _subsys, _api_func, _func ) |
#define PROVIDE_TIME_INLINE | ( | _subsys, | |
_api_func | |||
) | PROVIDE_SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
time_t time_now | ( | void | ) |
Get current time in seconds (ignoring system clock offset)
time | Time, in seconds |
Referenced by __attribute__().
|
inlinestatic |
Adjust system clock.
delta | Clock adjustment, in seconds |
Definition at line 67 of file time.h.
References time_offset.
signed long time_offset |