|
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) | |
| FILE_SECBOOT (PERMITTED) | |
| static void | efi_reboot (int flags) |
| Reboot system. | |
| static int | efi_poweroff (void) |
| Power off system. | |
| 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 | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
static |
Reboot system.
| flags | Reboot flags |
Definition at line 45 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_RUNTIME_SERVICES::SetVariable, strerror(), and type.
Referenced by PROVIDE_REBOOT().
|
static |
Power off system.
| rc | Return status code |
Definition at line 80 of file efi_reboot.c.
References ECANCELED, efi_systab, EfiResetShutdown, NULL, and EFI_RUNTIME_SERVICES::ResetSystem.
Referenced by PROVIDE_REBOOT().
| PROVIDE_REBOOT | ( | efi | , |
| reboot | , | ||
| efi_reboot | ) |
References efi_reboot(), and reboot().
| PROVIDE_REBOOT | ( | efi | , |
| poweroff | , | ||
| efi_poweroff | ) |
References efi_poweroff(), and poweroff().