include/linux/reboot.h
15997 #ifndef _LINUX_REBOOT_H
15998 #define _LINUX_REBOOT_H
15999
16000 /* Magic values required to use _reboot() system call. */
16001
16002 #define LINUX_REBOOT_MAGIC1 0xfee1dead
16003 #define LINUX_REBOOT_MAGIC2 672274793
16004 #define LINUX_REBOOT_MAGIC2A 85072278
16005 #define LINUX_REBOOT_MAGIC2B 369367448
16006
16007
16008 /* Commands accepted by the _reboot() system call.
16009 *
16010 * RESTART
16011 Restart system using default command and mode.
16012 * HALT
16013 * Stop OS & give sys control to ROM mon, if any.
16014 * CAD_ON
16015 * Ctrl-Alt-Del sequence causes RESTART command.
16016 * CAD_OFF
16017 * Ctrl-Alt-Del sequence sends SIGINT to init task.
16018 * POWER_OFF
16019 * Stop OS & remove all pwr from system, if poss.
16020 * RESTART2 Restart system using given command string.
16021 */
16022
16023 #define LINUX_REBOOT_CMD_RESTART 0x01234567
16024 #define LINUX_REBOOT_CMD_HALT 0xCDEF0123
16025 #define LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF
16026 #define LINUX_REBOOT_CMD_CAD_OFF 0x00000000
16027 #define LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC
16028 #define LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4
16029
16030
16031 #ifdef __KERNEL__
16032
16033 #include <linux/notifier.h>
16034
16035 extern struct notifier_block *reboot_notifier_list;
16036 extern int register_reboot_notifier(
16037 struct notifier_block *);
16038 extern int unregister_reboot_notifier(
16039 struct notifier_block *);
16040
16041
16042 /* Architecture-specific implementations of sys_reboot
16043 * commands. */
16044 extern void machine_restart(char *cmd);
16045 extern void machine_halt(void);
16046 extern void machine_power_off(void);
16047
16048 #endif
16049
16050 #endif /* _LINUX_REBOOT_H */
Сайт управляется системой
uCoz