NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <exec/chPanic.h>int sysReboot(KnRebootDesc*rebootdesc);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
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 microkernel drivers and initiates a cold reboot procedure, dependent on the Board Support Package.
sysReboot() does not perform shutdown on the POSIX layer.
is not available to applications and must be used by the operating system only
is not available to applications and must be used by the operating system only
sysReboot() called with the argument 0 performs the K_REBOOT_COLD reboot request described above.
If successful, sysReboot() does not return anything. Otherwise, a negative error code is returned.
The caller thread is not a SUPERVISOR thread or does not belong to a SYSTEM actor.
The Boards Support Package does not implement cold reboot procedure.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO