|
iPXE
|
EFI reboot mechanism. More...
#include <errno.h>#include <string.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/Guid/GlobalVariable.h>#include <ipxe/reboot.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | efi_reboot (int flags) |
| Reboot system. More... | |
| static int | efi_poweroff (void) |
| Power off system. More... | |
| PROVIDE_REBOOT (efi, reboot, efi_reboot) | |
| PROVIDE_REBOOT (efi, poweroff, efi_poweroff) | |
EFI reboot mechanism.
Definition in file efi_reboot.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Reboot system.
| flags | Reboot flags |
Definition at line 44 of file efi_reboot.c.
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.
|
static |
Power off system.
| rc | Return status code |
Definition at line 79 of file efi_reboot.c.
References ECANCELED, efi_systab, EfiResetShutdown, NULL, EFI_RUNTIME_SERVICES::ResetSystem, and EFI_SYSTEM_TABLE::RuntimeServices.
| PROVIDE_REBOOT | ( | efi | , |
| reboot | , | ||
| efi_reboot | |||
| ) |
| PROVIDE_REBOOT | ( | efi | , |
| poweroff | , | ||
| efi_poweroff | |||
| ) |
1.8.15