Skip to contentSkip to conversation

Documentation: sysrq: Rewrite /proc/sysrq-trigger usage

PATCH In review Bagas Sanjaya 3 participants 3 messages Oct 23, 2025 – Nov 3, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Documentation: sysrq: Rewrite /proc/sysrq-trigger usage

/proc/sysrq-trigger usage documentation (in "On all" section) states that it is not recommended to write extra characters to it. The sentence may imply a contradiction to previous sentence which writes that such characters are ignored.

Rewrite the description.

---
Changes since v2 [1]:

- Keep /proc/sysrq-trigger future API change note (Tomas)

Anselm: Do you object to the rewrite?

[1]: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/admin-guide/sysrq.rst | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
Documentation/admin-guide/sysrq.rst +6 -7
index 9c7aa817adc72d..a88266b171aa17 100644
@@ -75,16 +75,15 @@ On other
 	submit a patch to be included in this section.
 
 On all
-	Write a single character to /proc/sysrq-trigger.
-	Only the first character is processed, the rest of the string is
-	ignored. However, it is not recommended to write any extra characters
-	as the behavior is undefined and might change in the future versions.
-	E.g.::
+	Write a single character to /proc/sysrq-trigger. E.g.::
 
 		echo t > /proc/sysrq-trigger
 
-	Alternatively, write multiple characters prepended by underscore.
-	This way, all characters will be processed. E.g.::
+	Only the first character is processed; any following characters are
+	ignored for now, which might change in the future.
+
+	Alternatively, to write multiple characters, prepend them with an
+	underscore so that these all will be processed. E.g.::
 
 		echo _reisub > /proc/sysrq-trigger
 

base-commit: 0aa760051f4eb3d3bcd812125557bd09629a71e8

Signature · 1 line
An old man doll... just what I always wanted! - Clara
reviewer Reviewed-by Tested-by on v3 1/1
#1 lore raw
Quoted 9 lines · Bagas Sanjaya

/proc/sysrq-trigger usage documentation (in "On all" section) states that it is not recommended to write extra characters to it. The sentence may imply a contradiction to previous sentence which writes that such characters are ignored.

Rewrite the description.

Thanks.

Quoted 41 lines

---
Changes since v2 [1]:

- Keep /proc/sysrq-trigger future API change note (Tomas)

Anselm: Do you object to the rewrite?

[1]: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/admin-guide/sysrq.rst | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
Documentation/admin-guide/sysrq.rst +6 -7
index 9c7aa817adc72d..a88266b171aa17 100644
@@ -75,16 +75,15 @@ On other
 	submit a patch to be included in this section.
 
 On all
-	Write a single character to /proc/sysrq-trigger.
-	Only the first character is processed, the rest of the string is
-	ignored. However, it is not recommended to write any extra characters
-	as the behavior is undefined and might change in the future versions.
-	E.g.::
+	Write a single character to /proc/sysrq-trigger. E.g.::
 
 		echo t > /proc/sysrq-trigger
 
-	Alternatively, write multiple characters prepended by underscore.
-	This way, all characters will be processed. E.g.::
+	Only the first character is processed; any following characters are
+	ignored for now, which might change in the future.
+
+	Alternatively, to write multiple characters, prepend them with an
+	underscore so that these all will be processed. E.g.::
 
 		echo _reisub > /proc/sysrq-trigger
 

base-commit: 0aa760051f4eb3d3bcd812125557bd09629a71e8

Signature · 1 line
~Randy
maintainer
#2 lore raw
In reply to Bagas Sanjaya
Quoted 7 lines · Bagas Sanjaya

/proc/sysrq-trigger usage documentation (in "On all" section) states that it is not recommended to write extra characters to it. The sentence may imply a contradiction to previous sentence which writes that such characters are ignored.

Rewrite the description.

Quoted 8 lines

---
Changes since v2 [1]:

- Keep /proc/sysrq-trigger future API change note (Tomas)

Anselm: Do you object to the rewrite?

It still seems confusing...

Quoted 19 lines

[1]: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/admin-guide/sysrq.rst | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
Documentation/admin-guide/sysrq.rst +1 -5
index 9c7aa817adc72d..a88266b171aa17 100644
@@ -75,16 +75,15 @@ On other
 	submit a patch to be included in this section.
 
 On all
-	Write a single character to /proc/sysrq-trigger.
-	Only the first character is processed, the rest of the string is
-	ignored. However, it is not recommended to write any extra characters
-	as the behavior is undefined and might change in the future versions.
-	E.g.::
+	Write a single character to /proc/sysrq-trigger. E.g.::

Documentation/admin-guide/sysrq.rst On other · line 86

Quoted 10 lines
Documentation/admin-guide/sysrq.rst +5 -2
 
 		echo t > /proc/sysrq-trigger
 
-	Alternatively, write multiple characters prepended by underscore.
-	This way, all characters will be processed. E.g.::
+	Only the first character is processed; any following characters are
+	ignored for now, which might change in the future.
+
+	Alternatively, to write multiple characters, prepend them with an
+	underscore so that these all will be processed. E.g.::

You're still saying that following characters are ignored, then give an example where they are not:

Documentation/admin-guide/sysrq.rst On other · line 88

Quoted 1 line
Documentation/admin-guide/sysrq.rst +0 -0
 		echo _reisub > /proc/sysrq-trigger

So, for me, this still isn't really right.

This, I think, is a holdover from before, but I have to point out that:

Documentation/admin-guide/sysrq.rst On other · line 80

Quoted 1 line
Documentation/admin-guide/sysrq.rst +0 -0
 		echo t > /proc/sysrq-trigger

Does *not* write a single character: it writes "t\n".

jon