aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-04-18 18:47:02 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-04-27 01:28:59 +0000
commitb024a8d082a96a9c9d0151d0aeb864f67a4e9fcb (patch)
tree08c78606355901b8d6d99a7e6774a29754a3b4ed
parent342ce4b6b4d98c5bf6ba5e0be46dd2805d710d75 (diff)
membarrier.2: document MEMBARRIER_CMD_GET_REGISTRATIONS
(cherry picked from commit 324b3c2892a53e5fd9b1d8795a31a59ee835c5de)
-rw-r--r--lib/libsys/membarrier.26
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libsys/membarrier.2 b/lib/libsys/membarrier.2
index 87db620975ef..1dce2c823022 100644
--- a/lib/libsys/membarrier.2
+++ b/lib/libsys/membarrier.2
@@ -83,6 +83,8 @@ CPU are fenced.
Register the process to receive
.Dv MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE
memory barriers.
+.It Dv MEMBARRIER_CMD_GET_REGISTRATIONS
+Return the bitmask of the currently registered receive barriers.
.El
.Pp
The following
@@ -106,6 +108,10 @@ If the
is
.Dv MEMBARRIER_CMD_QUERY
a bitmask of supported commands is returned.
+For the
+.Dv MEMBARRIER_CMD_GET_REGISTRATIONS
+command, a bitmask of the registrations for the current process
+is returned.
Otherwise, on success,
.Nm
returns 0.