iPXE reboot API
More...
Go to the source code of this file.
iPXE reboot API
Definition in file reboot.h.
◆ REBOOT_INLINE
#define REBOOT_INLINE |
( |
|
_subsys, |
|
|
|
_api_func |
|
) |
| SINGLE_API_INLINE ( REBOOT_PREFIX_ ## _subsys, _api_func ) |
Calculate static inline reboot API function name.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
- Return values
-
_subsys_func | Subsystem API function |
Definition at line 22 of file reboot.h.
◆ PROVIDE_REBOOT
#define PROVIDE_REBOOT |
( |
|
_subsys, |
|
|
|
_api_func, |
|
|
|
_func |
|
) |
| PROVIDE_SINGLE_API ( REBOOT_PREFIX_ ## _subsys, _api_func, _func ) |
Provide an reboot API implementation.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
_func | Implementing function |
Definition at line 32 of file reboot.h.
◆ PROVIDE_REBOOT_INLINE
Provide a static inline reboot API implementation.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
Definition at line 41 of file reboot.h.
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ reboot()
Reboot system.
- Parameters
-
warm | Perform a warm reboot |
Referenced by reboot_exec().
◆ poweroff()
Power off system.
- Return values
-
This function may fail, since not all systems support being powered off by software.
Referenced by poweroff_exec().