[lkml]   [2021]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v4] reboot: allow to specify reboot mode via sysfs
On Tue 2020-11-10 21:27:46, Matteo Croce wrote:
> From: Matteo Croce <>
> The kernel cmdline reboot= option offers some sort of control
> on how the reboot is issued.
> Add handles in sysfs to allow setting these reboot options, so they
> can be changed when the system is booted, other than at boot time.

We already have a reboot syscall, do we need sysfs interface, too?

> +What: /sys/kernel/reboot/mode
> +Date: November 2020
> +KernelVersion: 5.11
> +Contact: Matteo Croce <>
> +Description: Reboot mode. Valid values are: cold warm hard soft gpio

> +What: /sys/kernel/reboot/type
> +Date: November 2020
> +KernelVersion: 5.11
> +Contact: Matteo Croce <>
> +Description: Reboot type. Valid values are: bios acpi kbd triple efi pci

what is difference between mode and type? What is difference between
cold and hard for example? WTF is gpio?

> +What: /sys/kernel/reboot/cpu
> +Date: November 2020
> +KernelVersion: 5.11
> +Contact: Matteo Croce <>
> +Description: CPU number to use to reboot.

Why should user care about this?

[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2021-02-22 11:08    [W:0.179 / U:4.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site