Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2026 17:42:50 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 324b3c2892a5 - main - membarrier.2: document MEMBARRIER_CMD_GET_REGISTRATIONS
Message-ID:  <69e6659a.3efdb.24113945@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=324b3c2892a53e5fd9b1d8795a31a59ee835c5de

commit 324b3c2892a53e5fd9b1d8795a31a59ee835c5de
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-18 18:47:02 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-04-20 17:42:28 +0000

    membarrier.2: document MEMBARRIER_CMD_GET_REGISTRATIONS
    
    Reviewed by:    markj, Ricardo Branco <rbranco@suse.com>
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D56507
---
 lib/libsys/membarrier.2 | 6 ++++++
 1 file changed, 6 insertions(+)

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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e6659a.3efdb.24113945>