xref: /linux/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes (revision 5ea5880764cbb164afb17a62e76ca75dc371409d)
1What:		/sys/class/reboot-mode/<driver>/reboot_modes
2Date:		March 2026(TBD)
3KernelVersion:	TBD
4Contact:	linux-pm@vger.kernel.org
5		Description:
6		This interface exposes the reboot-mode arguments
7		registered with the reboot-mode framework. It is
8		a read-only interface and provides a space
9		separated list of reboot-mode arguments supported
10		on the current platform.
11		Example:
12		 recovery fastboot bootloader
13
14		The exact sysfs path may vary depending on the
15		name of the driver that registers the arguments.
16		Example:
17		 /sys/class/reboot-mode/nvmem-reboot-mode/reboot_modes
18		 /sys/class/reboot-mode/syscon-reboot-mode/reboot_modes
19		 /sys/class/reboot-mode/qcom-pon/reboot_modes
20
21		The supported arguments can be used by userspace to
22		invoke device reset using the standard reboot() system
23		call interface, with the "argument" as string to "*arg"
24		parameter along with LINUX_REBOOT_CMD_RESTART2.
25
26		A driver can expose the supported arguments by
27		registering them with the reboot-mode framework
28		using the property names that follow the
29		mode-<argument> format.
30		Example:
31		 mode-bootloader, mode-recovery.
32
33		This attribute is useful for scripts or initramfs
34		logic that need to programmatically determine
35		which reboot-mode arguments are valid before
36		triggering a reboot.
37