]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/reboot.2
reboot.2: Place 'cmd' values in alphabetical order
[thirdparty/man-pages.git] / man2 / reboot.2
index d3bb19efb49c4c540cbcb6e148e35434e7a4e897..7e63d1853aaa7aaa3114bfbcb2890074e3e1c40b 100644 (file)
@@ -81,13 +81,21 @@ The
 .I cmd
 argument can have the following values:
 .TP
-.B LINUX_REBOOT_CMD_RESTART
-(RB_AUTOBOOT, 0x1234567).
-The message "Restarting system." is printed, and a default
-restart is performed immediately.
-If not preceded by a
-.BR sync (2),
-data will be lost.
+.B LINUX_REBOOT_CMD_CAD_OFF
+(RB_DISABLE_CAD, 0).
+CAD is disabled.
+This means that the CAD keystroke will cause a
+.B SIGINT
+signal to be
+sent to init (process 1), whereupon this process may decide upon a
+proper action (maybe: kill all processes, sync, reboot).
+.TP
+.B LINUX_REBOOT_CMD_CAD_ON
+(RB_ENABLE_CAD, 0x89abcdef).
+CAD is enabled.
+This means that the CAD keystroke will immediately cause
+the action associated with
+.BR LINUX_REBOOT_CMD_RESTART .
 .TP
 .B LINUX_REBOOT_CMD_HALT
 (RB_HALT_SYSTEM, 0xcdef0123; since 1.1.76).
@@ -97,6 +105,12 @@ If not preceded by a
 .BR sync (2),
 data will be lost.
 .TP
+.BR LINUX_REBOOT_CMD_KEXEC " (since Linux 2.6.13)"
+Execute a kernel that has been loaded earlier with
+.BR kexec_load (2).
+This option is only available if the kernel was configured with
+.BR CONFIG_KEXEC .
+.TP
 .B LINUX_REBOOT_CMD_POWER_OFF
 (0x4321fedc; since 2.1.30).
 The message "Power down." is printed, the system is stopped,
@@ -105,6 +119,14 @@ If not preceded by a
 .BR sync (2),
 data will be lost.
 .TP
+.B LINUX_REBOOT_CMD_RESTART
+(RB_AUTOBOOT, 0x1234567).
+The message "Restarting system." is printed, and a default
+restart is performed immediately.
+If not preceded by a
+.BR sync (2),
+data will be lost.
+.TP
 .B LINUX_REBOOT_CMD_RESTART2
 (0xa1b2c3d4; since 2.1.30).
 The message "Restarting system with command \(aq%s\(aq" is printed,
@@ -114,22 +136,6 @@ is performed immediately.
 If not preceded by a
 .BR sync (2),
 data will be lost.
-.TP
-.B LINUX_REBOOT_CMD_CAD_ON
-(RB_ENABLE_CAD, 0x89abcdef).
-CAD is enabled.
-This means that the CAD keystroke will immediately cause
-the action associated with
-.BR LINUX_REBOOT_CMD_RESTART .
-.TP
-.B LINUX_REBOOT_CMD_CAD_OFF
-(RB_DISABLE_CAD, 0).
-CAD is disabled.
-This means that the CAD keystroke will cause a
-.B SIGINT
-signal to be
-sent to init (process 1), whereupon this process may decide upon a
-proper action (maybe: kill all processes, sync, reboot).
 .LP
 Only the superuser may call
 .BR reboot ().
@@ -139,12 +145,6 @@ For the i386 architecture, the additional argument does not do
 anything at present (2.1.122), but the type of reboot can be
 determined by kernel command-line arguments ("reboot=...") to be
 either warm or cold, and either hard or through the BIOS.
-.TP
-.BR LINUX_REBOOT_CMD_KEXEC " (since Linux 2.6.13)"
-Execute a kernel that has been loaded earlier with
-.BR kexec_load (2).
-This option is only available if the kernel was configured with
-.BR CONFIG_KEXEC .
 .SH "RETURN VALUE"
 For the values of
 .I cmd