enum CMD [src]
Commands accepted by the _reboot() system call.
Fields
RESTART = 0x01234567Restart system using default command and mode.
HALT = 0xCDEF0123Stop OS and give system control to ROM monitor, if any.
CAD_ON = 0x89ABCDEFCtrl-Alt-Del sequence causes RESTART command.
CAD_OFF = 0x00000000Ctrl-Alt-Del sequence sends SIGINT to init task.
POWER_OFF = 0x4321FEDCStop OS and remove all power from system, if possible.
RESTART2 = 0xA1B2C3D4Restart system using given command string.
SW_SUSPEND = 0xD000FCE2Suspend system using software suspend if compiled in.
KEXEC = 0x45584543Restart system using a previously loaded Linux kernel
_
Source
pub const CMD = enum(u32) {
/// Restart system using default command and mode.
RESTART = 0x01234567,
/// Stop OS and give system control to ROM monitor, if any.
HALT = 0xCDEF0123,
/// Ctrl-Alt-Del sequence causes RESTART command.
CAD_ON = 0x89ABCDEF,
/// Ctrl-Alt-Del sequence sends SIGINT to init task.
CAD_OFF = 0x00000000,
/// Stop OS and remove all power from system, if possible.
POWER_OFF = 0x4321FEDC,
/// Restart system using given command string.
RESTART2 = 0xA1B2C3D4,
/// Suspend system using software suspend if compiled in.
SW_SUSPEND = 0xD000FCE2,
/// Restart system using a previously loaded Linux kernel
KEXEC = 0x45584543,
_,
}