iPXE
|
EFI watchdog holdoff timer. More...
#include <errno.h>
#include <string.h>
#include <ipxe/retry.h>
#include <ipxe/timer.h>
#include <ipxe/init.h>
#include <ipxe/efi/efi.h>
#include <ipxe/efi/efi_watchdog.h>
Go to the source code of this file.
Macros | |
#define | WATCHDOG_HOLDOFF_SECS 10 |
Watchdog holdoff interval (in seconds) More... | |
#define | WATCHDOG_TIMEOUT_SECS ( 5 * 60 ) |
Watchdog timeout (in seconds) More... | |
#define | WATCHDOG_CODE 0x6950584544454144ULL |
Watchdog code (to be logged on watchdog timeout) More... | |
#define | WATCHDOG_DATA L"iPXE"; |
Watchdog data (to be logged on watchdog timeout) More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | efi_watchdog_expired (struct retry_timer *timer, int over __unused) |
Hold off watchdog timer. More... | |
static void | efi_watchdog_shutdown (int booting) |
Disable watching when shutting down to boot an operating system. More... | |
struct startup_fn efi_watchdog_startup_fn | __startup_fn (STARTUP_EARLY) |
Watchdog startup/shutdown function. More... | |
Variables | |
struct retry_timer | efi_watchdog = TIMER_INIT ( efi_watchdog_expired ) |
Watchdog holdoff timer. More... | |
EFI watchdog holdoff timer.
Definition in file efi_watchdog.c.
#define WATCHDOG_HOLDOFF_SECS 10 |
Watchdog holdoff interval (in seconds)
Definition at line 42 of file efi_watchdog.c.
#define WATCHDOG_TIMEOUT_SECS ( 5 * 60 ) |
Watchdog timeout (in seconds)
Definition at line 45 of file efi_watchdog.c.
#define WATCHDOG_CODE 0x6950584544454144ULL |
Watchdog code (to be logged on watchdog timeout)
Definition at line 48 of file efi_watchdog.c.
#define WATCHDOG_DATA L"iPXE"; |
Watchdog data (to be logged on watchdog timeout)
Definition at line 51 of file efi_watchdog.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Hold off watchdog timer.
retry | Retry timer |
over | Failure indicator |
Definition at line 59 of file efi_watchdog.c.
References EFI_SYSTEM_TABLE::BootServices, data, DBGC, DBGC2, EEFI, efi_systab, rc, EFI_BOOT_SERVICES::SetWatchdogTimer, start_timer_fixed(), strerror(), TICKS_PER_SEC, WATCHDOG_CODE, WATCHDOG_DATA, WATCHDOG_HOLDOFF_SECS, and WATCHDOG_TIMEOUT_SECS.
|
static |
Disable watching when shutting down to boot an operating system.
booting | System is shutting down for OS boot |
Definition at line 90 of file efi_watchdog.c.
References EFI_SYSTEM_TABLE::BootServices, DBGC, EEFI, efi_systab, efi_watchdog, NULL, rc, EFI_BOOT_SERVICES::SetWatchdogTimer, and strerror().
struct startup_fn efi_watchdog_startup_fn __startup_fn | ( | STARTUP_EARLY | ) |
Watchdog startup/shutdown function.
struct retry_timer efi_watchdog = TIMER_INIT ( efi_watchdog_expired ) |
Watchdog holdoff timer.
Definition at line 83 of file efi_watchdog.c.
Referenced by efi_watchdog_shutdown(), efi_watchdog_start(), and efi_watchdog_stop().