|
iPXE
|
iPXE reboot API More...
#include <ipxe/api.h>#include <config/reboot.h>#include <ipxe/null_reboot.h>#include <ipxe/efi/efi_reboot.h>#include <bits/reboot.h>Go to the source code of this file.
Macros | |
| #define | REBOOT_INLINE(_subsys, _api_func) |
| Calculate static inline reboot API function name. | |
| #define | PROVIDE_REBOOT(_subsys, _api_func, _func) |
| Provide an reboot API implementation. | |
| #define | PROVIDE_REBOOT_INLINE(_subsys, _api_func) |
| Provide a static inline reboot API implementation. | |
| #define | REBOOT_WARM 0x00000001 |
| Perform a warm reboot. | |
| #define | REBOOT_SETUP 0x00000002 |
| Reboot to firmware setup. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| void | reboot (int flags) |
| Reboot system. | |
| int | poweroff (void) |
| Power off system. | |
iPXE reboot API
Definition in file reboot.h.
| #define REBOOT_INLINE | ( | _subsys, | |
| _api_func ) |
Calculate static inline reboot API function name.
| _prefix | Subsystem prefix |
| _api_func | API function |
| _subsys_func | Subsystem API function |
Definition at line 23 of file reboot.h.
| #define PROVIDE_REBOOT | ( | _subsys, | |
| _api_func, | |||
| _func ) |
Provide an reboot API implementation.
| _prefix | Subsystem prefix |
| _api_func | API function |
| _func | Implementing function |
Definition at line 33 of file reboot.h.
| #define PROVIDE_REBOOT_INLINE | ( | _subsys, | |
| _api_func ) |
Provide a static inline reboot API implementation.
| _prefix | Subsystem prefix |
| _api_func | API function |
Definition at line 42 of file reboot.h.
| #define REBOOT_WARM 0x00000001 |
Perform a warm reboot.
Definition at line 59 of file reboot.h.
Referenced by bios_reboot(), efi_reboot(), and reboot_exec().
| #define REBOOT_SETUP 0x00000002 |
Reboot to firmware setup.
Definition at line 60 of file reboot.h.
Referenced by efi_reboot(), and reboot_exec().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| void reboot | ( | int | flags | ) |
Reboot system.
| flags | Reboot flags |
References flags.
Referenced by COMMAND(), PROVIDE_REBOOT(), PROVIDE_REBOOT(), PROVIDE_REBOOT(), and reboot_exec().
| int poweroff | ( | void | ) |
Power off system.
| rc | Return status code |
This function may fail, since not all systems support being powered off by software.
Referenced by COMMAND(), poweroff_exec(), PROVIDE_REBOOT(), PROVIDE_REBOOT(), and PROVIDE_REBOOT().