mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
rename kernel_module to kernel_modules, start README mass factorings
This commit is contained in:
9
packages/kernel_modules/user/poweroff.c
Normal file
9
packages/kernel_modules/user/poweroff.c
Normal file
@@ -0,0 +1,9 @@
|
||||
/* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user