membarrier.2: Rework discussion of 'cmd'

Simplify and eliminate some redundancy.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-12-15 16:23:11 +01:00
parent a93704ad50
commit 84015a2273
1 changed files with 6 additions and 11 deletions

View File

@ -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