mirror of https://github.com/mkerrisk/man-pages
membarrier.2: Minor fixes to Mathieu's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
20fe250908
commit
d1555345ef
|
@ -88,24 +88,24 @@ order between entry to and return from the
|
||||||
system call.
|
system call.
|
||||||
All threads on the system are targeted by this command.
|
All threads on the system are targeted by this command.
|
||||||
.TP
|
.TP
|
||||||
.B MEMBARRIER_CMD_PRIVATE_EXPEDITED
|
.BR MEMBARRIER_CMD_PRIVATE_EXPEDITED " (since Linux 4.14)"
|
||||||
Execute a memory barrier on each running thread belonging to the same
|
Execute a memory barrier on each running thread belonging to the same
|
||||||
process as the current thread.
|
process as the current thread.
|
||||||
Upon return from system call, the caller
|
Upon return from system call, the calling
|
||||||
thread is ensured that all its running threads siblings have passed
|
thread is assured that all its running threads siblings have passed
|
||||||
through a state where all memory accesses to user-space addresses match
|
through a state where all memory accesses to user-space addresses match
|
||||||
program order between entry to and return from the system call
|
program order between entry to and return from the system call
|
||||||
(non-running threads are de facto in such a state).
|
(non-running threads are de facto in such a state).
|
||||||
This only covers threads from the same process as the caller thread.
|
This covers only threads from the same process as the calling thread.
|
||||||
The "expedited" commands complete faster than the non-expedited ones,
|
.IP
|
||||||
|
The "expedited" commands complete faster than the non-expedited ones;
|
||||||
they never block, but have the downside of causing extra overhead.
|
they never block, but have the downside of causing extra overhead.
|
||||||
A process needs to register its intent to use the private
|
A process needs to register its intent to use the private
|
||||||
expedited command prior to using it.
|
expedited command prior to using it.
|
||||||
.TP
|
.TP
|
||||||
.B MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED
|
.BR MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED " (since Linux 4.14)"
|
||||||
Register the process intent to use
|
Register the process's intent to use
|
||||||
.BR MEMBARRIER_CMD_PRIVATE_EXPEDITED .
|
.BR MEMBARRIER_CMD_PRIVATE_EXPEDITED .
|
||||||
.TP
|
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I flags
|
.I flags
|
||||||
|
|
Loading…
Reference in New Issue