Skip to contentSkip to conversation

lib/Kconfig.debug: document panic= command line option and procfs entry for PANIC_TIMEOUT

PATCH Applied Brian Masney 1 participant 1 message Jun 7, 2024 Library code

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lib/Kconfig.debug: document panic= command line option and procfs entry for PANIC_TIMEOUT

PANIC_TIMEOUT can also be controlled with the panic= kernel command line option and the file /proc/sys/kernel/panic. Let's document both of these in the Kconfig help text.

---
Changes since v1:
- Added /proc/sys/kernel/panic as suggested by Javier.

 lib/Kconfig.debug | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/Kconfig.debug +3 -1
index 59b6765d86b8..2fc9f0ddde0b 100644
@@ -1043,7 +1043,9 @@ config PANIC_TIMEOUT
 	  Set the timeout value (in seconds) until a reboot occurs when
 	  the kernel panics. If n = 0, then we wait forever. A timeout
 	  value n > 0 will wait n seconds before rebooting, while a timeout
-	  value n < 0 will reboot immediately.
+	  value n < 0 will reboot immediately. This setting can be overridden
+	  with the kernel command line option panic=, and from userspace via
+	  /proc/sys/kernel/panic.
 
 config LOCKUP_DETECTOR
 	bool
Signature · 1 line
2.45.1