s390_sthyi.2: some minor additions
PATCH 4/5 s390_sthyi.2: some minor additions
* man2/s390_sthyi.2 (.SH DESCRIPTION): Document the size of the resp_buffer when function_code is 0.
(.SH NOTES): Document various aspects of the current implementation (the lifted requirement for the response buffer alignment, the usage of hardware STHYI instruction whether available, the presence of in-kernel cache), add description for the documentation URL.
--- man2/s390_sthyi.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+)
man2/s390_sthyi.2 +13 -0
@@ -53,6 +53,9 @@ capacity information. The .I resp_buffer argument specifies the address of a response buffer. +When the +.I function_code +is 0, it has to be one page (4K) in size. If the system call returns 0, the response buffer will be filled with CPU capacity information. Otherwise, the response buffer's content is unchanged.
@@ -126,6 +129,16 @@ to call it. .PP For details of the STHYI instruction, see .UR https://www.ibm.com\:/support\:/knowledgecenter\:/SSB27U_6.3.0\:/com.ibm.zvm.v630.hcpb4\:/hcpb4sth.htm +the documentation page .UE . +.PP +The in-kernel implementation of the function code 0 doesn't require the response +buffer to be aligned to a page boundary (in contrast to the STHYI instruction +requirement). +.PP +The in-kernel implementation uses STHYI function whether available. +.PP +The kernel caches the response (for one second, currently), so the subsequent +calls to the system call within may return previously cached values instead. .SH SEE ALSO .BR syscall (2)
Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20180114185639.GA23817-ZbobWygYI+YXGNroddHbYwC/[email protected]
man2/s390_sthyi.2 to call it. · line 137
Quoted 10 lines · Eugene Syromyatnikov
* man2/s390_sthyi.2 (.SH DESCRIPTION): Document the size of the
resp_bufferwhenfunction_codeis 0.
(.SH NOTES): Document various aspects of the current implementation (the lifted requirement for the response buffer alignment, the usage of hardware STHYI instruction whether available, the presence of in-kernel cache), add description for the documentation URL.
---man2/s390_sthyi.2 +3
-0+The in-kernel implementation of the function code 0 doesn't require the response +buffer to be aligned to a page boundary (in contrast to the STHYI instruction +requirement).
Maybe: "When using the system call interface the response buffer doesn't have to fulfill alignment requirements as described in the STHYI instruction defintion." ?
Quoted 3 lines
+.PP
+The in-kernel implementation uses STHYI function whether available. +.PP
I don't think this should be described in the man page. This is an implementation detail that can change at any time.
man2/s390_sthyi.2 to call it. · line 142
Quoted 2 lines
man2/s390_sthyi.2 +2
-0+The kernel caches the response (for one second, currently), so the subsequent +calls to the system call within may return previously cached values instead.
"The kernel caches the response up to one second. Subsequent system call invocations may return the cached response." ?
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 15 lines · Heiko Carstens
man2/s390_sthyi.2 to call it. · line 137
Quoted 10 lines · Eugene Syromyatnikov
* man2/s390_sthyi.2 (.SH DESCRIPTION): Document the size of the
resp_bufferwhenfunction_codeis 0.
(.SH NOTES): Document various aspects of the current implementation (the lifted requirement for the response buffer alignment, the usage of hardware STHYI instruction whether available, the presence of in-kernel cache), add description for the documentation URL.
---man2/s390_sthyi.2 +3
-0+The in-kernel implementation of the function code 0 doesn't require the response +buffer to be aligned to a page boundary (in contrast to the STHYI instruction +requirement).Maybe: "When using the system call interface the response buffer doesn't have to fulfill alignment requirements as described in the STHYI instruction defintion." ?
Yes, that sounds better.
Quoted 6 lines
Quoted 3 lines
+.PP
+The in-kernel implementation uses STHYI function whether available. +.PPI don't think this should be described in the man page. This is an implementation detail that can change at any time.
Agreed.
Quoted 5 lines
man2/s390_sthyi.2 to call it. · line 142
Quoted 2 lines
man2/s390_sthyi.2 +2
-0+The kernel caches the response (for one second, currently), so the subsequent +calls to the system call within may return previously cached values instead."The kernel caches the response up to one second. Subsequent system call invocations may return the cached response." ?
Yep, that's definitely phrased better.
Signature · 7 lines
Eugene Syromyatnikov mailto:[email protected] xmpp:esyr@jabber.{ru|org} -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html