haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Internals.Reboot

Description

Linux reboot syscall

Synopsis

Documentation

data PowerCommand Source #

Commands supported by the reboot syscall

Constructors

PowerDisableRebootKeys

Ctrl-Alt-Del sequence sends SIGINT to init task.

PowerEnableRebootKeys

Ctrl-Alt-Del sequence causes RESTART command.

PowerHalt

Stop OS and give system control to ROM monitor, if any.

PowerKernelExec

Restart system using a previously loaded Linux kernel

PowerOff

Stop OS and remove all power from system, if possible.

PowerRestart

Restart system using default command and mode.

PowerRestartCommand String

Restart system using given command string.

PowerSoftSuspend

Suspend system using software suspend if compiled in.

powerCommandNumber :: PowerCommand -> Word64 Source #

Convert a power command into its magic number