Files
linux-kernel-module-cheat/kernel_module/user/poweroff.c
2018-09-02 20:31:39 +01:00

10 lines
191 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#poweroff-out */
#define _XOPEN_SOURCE 700
#include <sys/reboot.h>
#include <unistd.h>
int main(void) {
reboot(RB_POWER_OFF);
}