futex.2: Clarify that FUTEX_PRIVATE_FLAG relates to *thread* synchronization

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-15 20:35:16 +01:00
parent f19904c01c
commit e45f973525
1 changed files with 3 additions and 2 deletions

View File

@ -118,8 +118,9 @@ are as follows:
.BR FUTEX_PRIVATE_FLAG " (since Linux 2.6.22)"
.\" commit 34f01cc1f512fa783302982776895c73714ebbc2
This option bit can be employed with all futex operations.
It tells the kernel that the futex is process private and not shared
with another process.
It tells the kernel that the futex is process-private and not shared
with another process
(i.e., it is being used for synchronization between threads).
This allows the kernel to choose the fast path for validating
the user-space address and avoids expensive VMA lookups,
taking reference counts on file backing store, and so on.