1 2 3 4 5 6 7 8
#include <sys/reboot.h> int __reboot(unsigned int magic1, unsigned int magic2, int cmd); int reboot(int cmd) { return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd); }