EFI reboot mechanism.
Definition in file efi_reboot.c.
| static void efi_reboot |
( |
int |
flags | ) |
|
|
static |
Reboot system.
- Parameters
-
Definition at line 45 of file efi_reboot.c.
61 attrs, sizeof ( osind ),
#define EFI_VARIABLE_RUNTIME_ACCESS
struct arbelprm_rc_send_wqe rc
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
EFI_RESET_TYPE
Enumeration of reset types.
uint32_t type
Operating system type.
#define REBOOT_SETUP
Reboot to firmware setup.
#define EFI_VARIABLE_BOOTSERVICE_ACCESS
#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI
Used to induce a system-wide reset.
Used to induce a system-wide initialization.
#define EFI_OS_INDICATIONS_VARIABLE_NAME
Allows the OS to request the firmware to enable certain features and to take certain actions.
EFI_SET_VARIABLE SetVariable
EFI_GUID efi_global_variable
Global variable GUID.
EFI Runtime Services Table.
EFI_RESET_SYSTEM ResetSystem
char * strerror(int errno)
Retrieve string representation of error number.
#define REBOOT_WARM
Perform a warm reboot.
unsigned long long UINT64
EFI_RUNTIME_SERVICES * RuntimeServices
A pointer to the EFI Runtime Services Table.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
EFI_SYSTEM_TABLE * efi_systab
#define EFI_VARIABLE_NON_VOLATILE
Attributes of variable.
#define NULL
NULL pointer (VOID *)
References DBGC, EEFI, efi_global_variable, EFI_OS_INDICATIONS_BOOT_TO_FW_UI, EFI_OS_INDICATIONS_VARIABLE_NAME, efi_systab, EFI_VARIABLE_BOOTSERVICE_ACCESS, EFI_VARIABLE_NON_VOLATILE, EFI_VARIABLE_RUNTIME_ACCESS, EfiResetCold, EfiResetWarm, flags, NULL, rc, REBOOT_SETUP, REBOOT_WARM, EFI_RUNTIME_SERVICES::ResetSystem, EFI_SYSTEM_TABLE::RuntimeServices, EFI_RUNTIME_SERVICES::SetVariable, strerror(), and type.