Go to the previous, next section.
int reboot(int magic, int magic_too, int
flag);
magic: [in] 0xfee1dead.
magic_too: [in] 672274793.
flag: [in] see description.
Reboots the machine or enable the Ctrl-Alt-Del combinaison. magic
must be 0xfee1dead and magic_too must be
672274793. If those two conditions are true, then the following
values of flag perform the specified operations:
0x1234567
0x89abcdef
0
init.
Does not sync!!! The calling task must have superuser privileges.
On success zero is returned. On error -1 is returned and errno
is set to one of the following values:
EINVAL: the value of magic, magic_too
or flag is invalid.
EPERM: the calling task does not have superuser privileges.