Documentation: sysrq: Remove contradicting sentence on extra /proc/sysrq-trigger characters
Subsystems (2)
PATCH 1/1 Documentation: sysrq: Remove contradicting sentence on extra /proc/sysrq-trigger characters
/proc/sysrq-trigger documentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.
Remove it.
--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Documentation/admin-guide/sysrq.rst +1 -3
@@ -77,9 +77,7 @@ On other 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.:: + ignored. E.g.:: echo t > /proc/sysrq-trigger
base-commit: c746c3b5169831d7fb032a1051d8b45592ae8d78
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 9 lines · Bagas Sanjaya
/proc/sysrq-triggerdocumentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.Remove it.
Thanks.
Quoted 21 lines
--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Documentation/admin-guide/sysrq.rst +1
-3@@ -77,9 +77,7 @@ On other 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.:: + ignored. E.g.:: echo t > /proc/sysrq-triggerbase-commit:
c746c3b5169831d7fb032a1051d8b45592ae8d78
Jonathan Corbet
maintainerQuoted 18 lines · Bagas Sanjaya
/proc/sysrq-triggerdocumentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.Remove it.
Signed-off-by Bagas Sanjaya <[email protected]>--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Documentation/admin-guide/sysrq.rst +0
-0
Documentation/admin-guide/sysrq.rst On other · line 80
Quoted 7 lines
Documentation/admin-guide/sysrq.rst +1
-3@@ -77,9 +77,7 @@ On other 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.:: + ignored. E.g.::
I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now. After all these years, I think the chances of fundamental sysrq changes are pretty small, but I still don't see why we would take the warning out?
jon
Randy Dunlap
reviewerQuoted 25 lines · Jonathan Corbet
Quoted 23 lines · Bagas Sanjaya
/proc/sysrq-triggerdocumentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.Remove it.
Signed-off-by Bagas Sanjaya <[email protected]>--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Documentation/admin-guide/sysrq.rst +0
-2@@ -77,9 +77,7 @@ On other 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.
Quoted 8 lines
Documentation/admin-guide/sysrq.rst On other · line 80
Quoted 2 lines
Documentation/admin-guide/sysrq.rst +1
-1- E.g.:: + ignored. E.g.::I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now. After all these years, I think the chances of fundamental sysrq changes are pretty small, but I still don't see why we would take the warning out?
but the following paragraph says:
Alternatively, write multiple characters prepended by underscore. This way, all characters will be processed. E.g.::
echo _reisub > /proc/sysrq-trigger
so it is confuzing.
Signature · 1 line
~Randy
Quoted 37 lines · Randy Dunlap
Quoted 25 lines · Jonathan Corbet
Quoted 23 lines · Bagas Sanjaya
/proc/sysrq-triggerdocumentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.Remove it.
Signed-off-by Bagas Sanjaya <[email protected]>--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Documentation/admin-guide/sysrq.rst +0
-2@@ -77,9 +77,7 @@ On other 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.Quoted 8 lines
Documentation/admin-guide/sysrq.rst On other · line 80
Quoted 2 lines
Documentation/admin-guide/sysrq.rst +1
-1- E.g.:: + ignored. E.g.::I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now. After all these years, I think the chances of fundamental sysrq changes are pretty small, but I still don't see why we would take the warning out?
Quoted 8 lines
but the following paragraph says:
Alternatively, write multiple characters prepended by underscore. This way, all characters will be processed. E.g.::
echo
_reisub>/proc/sysrq-triggerso it is confuzing.
I guess the whole "On all" description can be rewritten like:
Write a single character to /proc/sysrq-trigger, e.g.::
<snipped>...
If a string (multiple characters) is written instead, only the first character is processed unless the string is prepended by an underscore, like::
<snipped>...
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Jiri Slaby
maintainerQuoted 49 lines · Bagas Sanjaya
Quoted 37 lines · Randy Dunlap
Quoted 25 lines · Jonathan Corbet
Quoted 23 lines · Bagas Sanjaya
/proc/sysrq-triggerdocumentation states that only first character is processed and the rest is ignored, yet it is not recommended to write any extra characters to it. The latter statement is contradictive as these characters are also ignored as implied by preceding sentence.Remove it.
Signed-off-by Bagas Sanjaya <[email protected]>--- Documentation/admin-guide/sysrq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Documentation/admin-guide/sysrq.rst +0
-2@@ -77,9 +77,7 @@ On other 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.Quoted 8 lines
Documentation/admin-guide/sysrq.rst On other · line 80
Quoted 2 lines
Documentation/admin-guide/sysrq.rst +1
-1- E.g.:: + ignored. E.g.::I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now. After all these years, I think the chances of fundamental sysrq changes are pretty small, but I still don't see why we would take the warning out?
Quoted 8 lines
but the following paragraph says:
Alternatively, write multiple characters prepended by underscore. This way, all characters will be processed. E.g.::
echo
_reisub>/proc/sysrq-triggerso it is confuzing.
I guess the whole "On all" description can be rewritten like:
Quoted 8 lines
Write a single character to
/proc/sysrq-trigger, e.g.::<snipped>...
If a string (multiple characters) is written instead, only the first character is processed unless the string is prepended by an underscore, like::
<snipped>...
Some kind of, yes. So Either:
* you write no underscore and a character -- the rest is ignored and you should not write more than one.
* you prepend underscore and write more of them -- all are processed.
thanks,
Signature · 2 lines
js suse labs
Quoted 10 lines · Jiri Slaby
Quoted 9 lines · Bagas Sanjaya
I guess the whole "On all" description can be rewritten like:
Write a single character to
/proc/sysrq-trigger, e.g.::<snipped>...
If a string (multiple characters) is written instead, only the first character is processed unless the string is prepended by an underscore, like::
Quoted 7 lines
Quoted 1 line
<snipped>...
Some kind of, yes. So Either:
* you write no underscore and a character -- the rest is ignored and you should not write more than one.
* you prepend underscore and write more of them -- all are processed.
OK, thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Hi. I am author of that sentence and this is NACK from me.
Quoted 3 lines
I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now.
As you've said... I don't see anything confusing about that. The warning was added for a reason, because there was discussion about some people writing extra characters in there, which might cause issues down the line if we refactor the code in future.
Quoted 2 lines
After all these years, I think
the chances of fundamental sysrq changes are pretty small,
Actualy it is not that long since the underscore mode was added...
Quoted 1 line
but I still don't see why we would take the warning out?
Exactly. Thank you.
Quoted 1 line · Tomas Mudrunka
Hi. I am author of that sentence and this is NACK from me.
Oops, I didn't see your review when I send v2 [1].
[1]: https://lore.kernel.org/linux-doc/[email protected]/
Quoted 9 lines
Quoted 4 lines
I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now.
As you've said... I don't see anything confusing about that. The warning was added for a reason, because there was discussion about some people writing extra characters in there, which might cause issues down the line if we refactor the code in future.
Any pointers to these discussions? Or do you have any idea on better description on /proc/sysrq-trigger itself?
Confused...
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Randy Dunlap
reviewerHi,
Quoted 10 lines · Tomas Mudrunka
Hi. I am author of that sentence and this is NACK from me.
Quoted 3 lines
I'm not sure this is right - there is a warning here that additional characters may acquire a meaning in the future, so one should not develop the habit of writing them now.
As you've said... I don't see anything confusing about that. The warning was added for a reason, because there was discussion about some people writing extra characters in there, which might cause issues down the line if we refactor the code in future.
You have already provided a way to write (enter) multiple characters to /proc/sysrq-trigger. Are you suggesting that someone may come along and add yet another way to write multiple characters and that this paragraph is present in case that happens?
Quoted 9 lines
Quoted 2 lines
After all these years, I think
the chances of fundamental sysrq changes are pretty small,Actualy it is not that long since the underscore mode was added...
Quoted 1 line
but I still don't see why we would take the warning out?
Exactly. Thank you.
Signature · 1 line
~Randy