int acpi_poweroff(void)
Power off the computer using ACPI.
int apm_poweroff(void)
Power off the computer using APM.
Advanced Power Management.
struct arbelprm_rc_send_wqe rc
__asm__ __volatile__("call *%9" :"=a"(result), "=c"(discard_ecx), "=d"(discard_edx) :"d"(0), "a"(code), "b"(0), "c"(in_phys), "D"(0), "S"(out_phys), "m"(hypercall))
static void bios_reboot(int flags)
Reboot system.
static int bios_poweroff(void)
Power off system.
uint32_t type
Operating system type.
#define DBG(...)
Print a debugging message.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define PROVIDE_REBOOT(_subsys, _api_func, _func)
Provide an reboot API implementation.
int poweroff(void)
Power off system.
void reboot(int flags)
Reboot system.
#define REBOOT_WARM
Perform a warm reboot.
#define REAL_CODE(asm_code_str)
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
char * strerror(int errno)
Retrieve string representation of error number.