![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 #ifndef _UAPI_LINUX_REBOOT_H 0003 #define _UAPI_LINUX_REBOOT_H 0004 0005 /* 0006 * Magic values required to use _reboot() system call. 0007 */ 0008 0009 #define LINUX_REBOOT_MAGIC1 0xfee1dead 0010 #define LINUX_REBOOT_MAGIC2 672274793 0011 #define LINUX_REBOOT_MAGIC2A 85072278 0012 #define LINUX_REBOOT_MAGIC2B 369367448 0013 #define LINUX_REBOOT_MAGIC2C 537993216 0014 0015 0016 /* 0017 * Commands accepted by the _reboot() system call. 0018 * 0019 * RESTART Restart system using default command and mode. 0020 * HALT Stop OS and give system control to ROM monitor, if any. 0021 * CAD_ON Ctrl-Alt-Del sequence causes RESTART command. 0022 * CAD_OFF Ctrl-Alt-Del sequence sends SIGINT to init task. 0023 * POWER_OFF Stop OS and remove all power from system, if possible. 0024 * RESTART2 Restart system using given command string. 0025 * SW_SUSPEND Suspend system using software suspend if compiled in. 0026 * KEXEC Restart system using a previously loaded Linux kernel 0027 */ 0028 0029 #define LINUX_REBOOT_CMD_RESTART 0x01234567 0030 #define LINUX_REBOOT_CMD_HALT 0xCDEF0123 0031 #define LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF 0032 #define LINUX_REBOOT_CMD_CAD_OFF 0x00000000 0033 #define LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC 0034 #define LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4 0035 #define LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2 0036 #define LINUX_REBOOT_CMD_KEXEC 0x45584543 0037 0038 0039 0040 #endif /* _UAPI_LINUX_REBOOT_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |