reboot API
| Modifier and Type | Field and Description |
|---|---|
| public static final int | RB_AUTOBOOT
Perform a hard reset now. |
| public static final int | RB_DISABLE_CAD
Disable reboot using Ctrl-Alt-Delete keystroke. |
| public static final int | RB_ENABLE_CAD
Enable reboot using Ctrl-Alt-Delete keystroke. |
| public static final int | |
| public static final int | RB_KEXEC
Reboot system into new kernel. |
| public static final int | RB_POWER_OFF
Stop system and switch power off if possible. |
| public static final int | RB_SW_SUSPEND
Suspend system using software suspend. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variableerrno.The command cmd)Stops/Reboots the machine |
| RB_AUTOBOOT | back to summary |
|---|---|
| public static final int RB_AUTOBOOT Perform a hard reset now. | |
| RB_DISABLE_CAD | back to summary |
|---|---|
| public static final int RB_DISABLE_CAD Disable reboot using Ctrl-Alt-Delete keystroke. | |
| RB_ENABLE_CAD | back to summary |
|---|---|
| public static final int RB_ENABLE_CAD Enable reboot using Ctrl-Alt-Delete keystroke. | |
| RB_HALT_SYSTEM | back to summary |
|---|---|
| public static final int RB_HALT_SYSTEM | |
| RB_KEXEC | back to summary |
|---|---|
| public static final int RB_KEXEC Reboot system into new kernel. | |
| RB_POWER_OFF | back to summary |
|---|---|
| public static final int RB_POWER_OFF Stop system and switch power off if possible. | |
| RB_SW_SUSPEND | back to summary |
|---|---|
| public static final int RB_SW_SUSPEND Suspend system using software suspend. | |
| reboot | back to summary |
|---|---|
| public int reboot(int cmd) Stops/Reboots the machine
| |