NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <restart/chRestart.h>int sysReboot(KnRebootDesc*rebootdesc);
CORE
The sysReboot system call requests a reboot of the local site.
The caller thread must be a supervisor thread (see threadCreate(2K)) or must belong to a system actor (see actorCreate(2K)).
The rebootdesc pointer must be either 0 or a pointer to a KnRebootDesc structure:
KnRebootMode mode ; |
The mode field specifies the reboot request and can be one of the following values:
stops all kernel drivers and initiates a BSP-dependent cold reboot procedure. Note that sysReboot doesn't perform any shutdown operation on the POSIX personality.
is not available for applications and must be used by the operating system only
is not available for applications and must be used by the operating system only
sysReboot called with the argument 0 performs the above described K_REBOOT_COLD reboot request.
If successful, sysReboot does not return, otherwise a negative error code is returned.
The caller thread is not a SUPERVISOR thread or does not belong to a SYSTEM actor.
The BSP doesn't implement cold reboot procedure.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO