]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
prctl.2: Minor fixups
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 28 May 2018 10:21:57 +0000 (12:21 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 28 May 2018 10:57:30 +0000 (12:57 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/prctl.2

index f00c97a63c030350ef9df5062afd7a029bdf40e1..27d9aec15a184504c09a11ea422814c815fc1164 100644 (file)
@@ -1013,14 +1013,15 @@ Returns the state of the speculation misfeature which is selected with
 the value of
 .IR arg2 ,
 which must be
-.BR PR_SPEC_STORE_BYPASS .
-Otherwise the call fails with the error
-.BR ENODEV .
-The return value uses bit 0-3 with the following meaning:
+.BR PR_SPEC_STORE_BYPASS
+(otherwise the call fails with the error
+.BR ENODEV ).
+.IP
+The return value uses bits 0-3 with the following meaning:
 .RS
 .TP
 .BR PR_SPEC_PRCTL
-Mitigation can be controlled per task by
+Mitigation can be controlled per thread by
 .B PR_SET_SPECULATION_CTRL
 .TP
 .BR PR_SPEC_ENABLE
@@ -1035,13 +1036,12 @@ Same as
 but cannot be undone.
 .RE
 .IP
-If all bits are
-0
+If all bits are 0,
 then the CPU is not affected by the speculation misfeature.
 .IP
 If
 .B PR_SPEC_PRCTL
-is set, then the per task control of the mitigation is available.
+is set, then per-thread control of the mitigation is available.
 If not set,
 .BR prctl ()
 for the speculation misfeature will fail.
@@ -1058,13 +1058,13 @@ Sets the state of the speculation misfeature which is selected with
 the value of
 .IR arg2 ,
 which must be
-.B PR_SPEC_STORE_BYPASS.
-Otherwise the call fails with the error
-.BR ENODEV .
-This control is per task.
+.B PR_SPEC_STORE_BYPASS
+(otherwise the call fails with the error
+.BR ENODEV ).
+This control is per thread.
 The
 .IR arg3
-is used to hand in the control value, which can be either:
+argument is used to hand in the control value, which can be either:
 .RS
 .TP
 .BR PR_SPEC_ENABLE
@@ -1080,19 +1080,19 @@ but cannot be undone.
 A subsequent
 .B
 prctl(..., PR_SPEC_ENABLE)
-will fail with
+will fail with the error
 .BR EPERM .
 .RE
 .IP
 Any other value in
 .IR arg3
-will result in the call failure with the error
+will result in the call failing with the error
 .BR ERANGE .
 Also
-.I arg4,
+.I arg4
 and
 .I arg5
-must be specified as 0, otherwise the call fails with ethe rror
+must be specified as 0, otherwise the call fails with the rror
 .BR EINVAL .
 .IP
 Furtheremore this speculation feature can also be controlled by the boot-time