From 84015a2273afd6164279997cba5832b11b957c73 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 15 Dec 2015 16:23:11 +0100 Subject: [PATCH] membarrier.2: Rework discussion of 'cmd' Simplify and eliminate some redundancy. Signed-off-by: Michael Kerrisk --- man2/membarrier.2 | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/man2/membarrier.2 b/man2/membarrier.2 index 448cc648d..effd58190 100644 --- a/man2/membarrier.2 +++ b/man2/membarrier.2 @@ -75,8 +75,12 @@ argument is one of the following: Query the set of supported commands. The return value of the call is a bit mask of supported commands. -.RB ( MEMBARRIER_CMD_QUERY -is not itself included included in this bit mask.) +.BR MEMBARRIER_CMD_QUERY , +which has the value 0, +is not itself included in this bit mask. +This command is always supported (on kernels where +.BR membarrier () +is provided). .TP .B MEMBARRIER_CMD_SHARED Ensure that all threads from all processes on the system pass through a @@ -85,15 +89,6 @@ order between entry to and return from the .BR membarrier () system call. All threads on the system are targeted by this command. -.PP -The -.I cmd -argument expects a one-hot bit of a bit mask, except for the -.B MEMBARRIER_CMD_QUERY -command which has the value 0. -This query command is always supported, -even though it is not part of the bit mask. - .PP The .I flags