linux/include/uapi/linux/reboot.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_LINUX_REBOOT_H
#define _UAPI_LINUX_REBOOT_H

/*
 * Magic values required to use _reboot() system call.
 */

#define LINUX_REBOOT_MAGIC1
#define LINUX_REBOOT_MAGIC2
#define LINUX_REBOOT_MAGIC2A
#define LINUX_REBOOT_MAGIC2B
#define LINUX_REBOOT_MAGIC2C


/*
 * Commands accepted by the _reboot() system call.
 *
 * RESTART     Restart system using default command and mode.
 * HALT        Stop OS and give system control to ROM monitor, if any.
 * CAD_ON      Ctrl-Alt-Del sequence causes RESTART command.
 * CAD_OFF     Ctrl-Alt-Del sequence sends SIGINT to init task.
 * POWER_OFF   Stop OS and remove all power from system, if possible.
 * RESTART2    Restart system using given command string.
 * SW_SUSPEND  Suspend system using software suspend if compiled in.
 * KEXEC       Restart system using a previously loaded Linux kernel
 */

#define LINUX_REBOOT_CMD_RESTART
#define LINUX_REBOOT_CMD_HALT
#define LINUX_REBOOT_CMD_CAD_ON
#define LINUX_REBOOT_CMD_CAD_OFF
#define LINUX_REBOOT_CMD_POWER_OFF
#define LINUX_REBOOT_CMD_RESTART2
#define LINUX_REBOOT_CMD_SW_SUSPEND
#define LINUX_REBOOT_CMD_KEXEC



#endif /* _UAPI_LINUX_REBOOT_H */