From nobody Fri Mar 04 19:48:15 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7638A19F1506; Fri, 4 Mar 2022 19:48:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K9JLS1QLQz4t0l; Fri, 4 Mar 2022 19:48:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646423296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pD1ijFdbMqNEbtlM7Z/QGanZzLJY16Pa2uVniVmss1o=; b=RlEiGkWoKtqyGHU3h5lmD9AmkK1u7kMr0BsMlrRVaCMaP8EnplLhfdsUnA2/omZkbATbBS QefiJ7DFSOkf3bniVzjQNi+nC/ES/vjg9FqzlMbdA4luurN6CQgEy1Z6auUCc4ORuqXLnb Ir+D2JdX+KcPOHBqH5WDEJ3LbDJq7cLuOXOKTJ/uIW6gMY9+DSmimHCxMJ8jHi5byMk/z2 Jf7WVgKxYHY6enq4jN/IBltUl22w9cGeXVU8CELtDhoDtWNHA/lLbhwn3ZsmYGyyx1tUsW CbKr2LgJhXGKMMaNouZShNnC/eajnqgLb27Zt6j3LiJsUeJlEv6f/54jYMQe3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6483126DC; Fri, 4 Mar 2022 19:48:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 224JmFHJ069195; Fri, 4 Mar 2022 19:48:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 224JmFBi069194; Fri, 4 Mar 2022 19:48:15 GMT (envelope-from git) Date: Fri, 4 Mar 2022 19:48:15 GMT Message-Id: <202203041948.224JmFBi069194@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 63cc3d693de7 - stable/13 - bitset.9: add description of BIT_ISSET List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 63cc3d693de77768e1f85f1ed66c87f42b81daec Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646423296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pD1ijFdbMqNEbtlM7Z/QGanZzLJY16Pa2uVniVmss1o=; b=fab/jYulH2mJs7IGaL4deVfKGqtAMKEi11faOZ4KZRt4R5DlEexmiblJontQ5vXkT0RAe3 HB8Xacjt/f9BiRJkpVHUC3sOIwkG4JVvFhkq4nw1LKOGiRVKG8LcLGmwDOHZXHJnznDbl/ AA6wmLhVMVWYcaDwk4PxUb7H9vQdGRCUagl+YskyOuUCRAXxtMeIU+2W3qlpymbqSxZp4T cCo8Cbq9IRRdMiUrUeDZthW9PKimNc4y0WYCwdCJGrc8H4OQNX6yIw/kvG7xdw56A02n7N T6FfKTw/JOyx7Ii714A0bxTDw9+mWVEcIpRcRlD6vkPs0oVrafJy7PLMBJE+mA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646423296; a=rsa-sha256; cv=none; b=i4s+zLeb/Y2wSvrewjXznLy13TyydZBIrpG5AkqaisZT2K6QO46wI0UnvF2DY0Nf3QUxKe KRwQb3da9dfSSOIVVSe2C4erTX2JGTpFkutXsiVNfsgI6XzcJb4QCcfy4Z4MLH8caOI1bX JvzA9gxYAMmLdf21oyrZeS4kdS2uvaXd0bX5LqLFE+3B48D/77zlBvMhJOG0wKgAQcufb0 v2rjltDeb5IAy+wRvEy7i+VJ9V/c78/6zuFAVrs26aTXugLv08tGnZQzu9TNltRkrrAEG8 XdOPeO9iI7NzW9FThUagUa4QQ+MtDGEG6MJImN6nHDqOTManLdOSM14XXumbzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=63cc3d693de77768e1f85f1ed66c87f42b81daec commit 63cc3d693de77768e1f85f1ed66c87f42b81daec Author: Doug Moore AuthorDate: 2022-01-06 12:14:18 +0000 Commit: Stefan Eßer CommitDate: 2022-03-04 19:45:51 +0000 bitset.9: add description of BIT_ISSET Extracted from abandoned review https://reviews.freebsd.org/D33701. (cherry picked from commit 145c65fc5791d1e4a21c7653f68a55cfd1772aac) cpuset.9: add description of CPU_ISSET (cherry picked from commit eaf3c3af9c88dc63ea09833397f2bbeded16f553) --- share/man/man9/bitset.9 | 10 ++++++++++ share/man/man9/cpuset.9 | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/share/man/man9/bitset.9 b/share/man/man9/bitset.9 index e6ce3d9b4f58..d177bea51762 100644 --- a/share/man/man9/bitset.9 +++ b/share/man/man9/bitset.9 @@ -256,6 +256,16 @@ is composed of multiple machine words, performs multiple individually atomic operations.) .Pp The +.Fn BIT_ISSET +macro returns +.Dv true +if the bit +.Fa bit +in the bitset pointed to by +.Fa bitset +is set. +.Pp +The .Fn BIT_SET macro sets bit .Fa bit diff --git a/share/man/man9/cpuset.9 b/share/man/man9/cpuset.9 index 92b759b438a3..29dbc8fc733b 100644 --- a/share/man/man9/cpuset.9 +++ b/share/man/man9/cpuset.9 @@ -178,6 +178,15 @@ The macro sets the bit representing the CPU with atomic acquire semantics. .Pp The +.Fn CPU_ISSET +macro returns +.Dv true +if CPU +.Fa cpu_idx +is a member of the cpuset pointed to by +.Fa cpuset . +.Pp +The .Fn CPU_ZERO macro removes all CPUs from .Fa cpuset .