Modifier and Type | Field | Description |
---|---|---|
static int |
RB_AUTOBOOT |
Perform a hard reset now.
|
static int |
RB_DISABLE_CAD |
Disable reboot using Ctrl-Alt-Delete keystroke.
|
static int |
RB_ENABLE_CAD |
Enable reboot using Ctrl-Alt-Delete keystroke.
|
static int |
RB_HALT_SYSTEM |
|
static int |
RB_KEXEC |
Reboot system into new kernel.
|
static int |
RB_POWER_OFF |
Stop system and switch power off if possible.
|
static int |
RB_SW_SUSPEND |
Suspend system using software suspend.
|
Modifier and Type | Method | Description |
---|---|---|
int |
reboot(int cmd) |
Stops/Reboots the machine
|
static final int RB_AUTOBOOT
static final int RB_HALT_SYSTEM
static final int RB_ENABLE_CAD
static final int RB_DISABLE_CAD
static final int RB_POWER_OFF
static final int RB_SW_SUSPEND
static final int RB_KEXEC
int reboot(int cmd)
cmd
- The commanderrno
.