]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
bitset.9: add description of BIT_ISSET
authorDoug Moore <dougm@FreeBSD.org>
Thu, 6 Jan 2022 12:14:18 +0000 (13:14 +0100)
committerStefan Eßer <se@FreeBSD.org>
Fri, 4 Mar 2022 19:45:51 +0000 (20:45 +0100)
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
share/man/man9/cpuset.9

index e6ce3d9b4f58db084e7e9130099da19f7d0c7441..d177bea517624ab4962514659877080bf173ddb0 100644 (file)
@@ -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
index 92b759b438a3d56827b8086af8bb8e1b7ec9937f..29dbc8fc733bc04efdab251f352751c01a9b1c86 100644 (file)
@@ -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 .