#include <sys/reboot.h>
extern ssize_t reboot(int32_t cmd);
# cmd:
#define VIMIX_REBOOT_CMD_POWER_OFF 0
#define VIMIX_REBOOT_CMD_RESTART 1
Reboots or halts the system.
The app shutdown exposes this syscall.
Implemented in sys_system.c
as sys_reboot()
.
Warning: Shuts off hard, ideally the OS would write all outstanding transactions to disk first or kill all processes first, etc.
Overview: syscalls