Module Name: src
Committed By: rmind
Date: Sat Jul 7 21:26:36 UTC 2012
Modified Files:
src/share/man/man9: kcpuset.9
Log Message:
Document kcpuset_isotherset() and kcpuset_countset().
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/kcpuset.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/kcpuset.9
diff -u src/share/man/man9/kcpuset.9:1.2 src/share/man/man9/kcpuset.9:1.3
--- src/share/man/man9/kcpuset.9:1.2 Thu Oct 6 08:59:01 2011
+++ src/share/man/man9/kcpuset.9 Sat Jul 7 21:26:36 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: kcpuset.9,v 1.2 2011/10/06 08:59:01 wiz Exp $ */
+.\" $NetBSD: kcpuset.9,v 1.3 2012/07/07 21:26:36 rmind Exp $ */
.\"
.\" Copyright (c) 2011 Jukka Ruohonen <jruohonen.iki.fi>
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd October 6, 2011
+.Dd July 7, 2012
.Dt KCPUSET 9
.Os
.Sh NAME
@@ -42,9 +42,11 @@
.Nm kcpuset_set ,
.Nm kcpuset_clear ,
.Nm kcpuset_isset ,
+.Nm kcpuset_isotherset ,
.Nm kcpuset_iszero ,
.Nm kcpuset_match ,
.Nm kcpuset_merge ,
+.Nm kcpuset_countset ,
.Nm kcpuset_atomic_set ,
.Nm kcpuset_atomic_clear
.Nd dynamic kernel CPU sets
@@ -72,14 +74,18 @@
.Fn kcpuset_set "kcpuset_t *kcp" "cpuid_t cpu"
.Ft void
.Fn kcpuset_clear "kcpuset_t *kcp" "cpuid_t cpu"
-.Ft int
+.Ft bool
.Fn kcpuset_isset "kcpuset_t * kcp" "cpuid_t cpu"
.Ft bool
+.Fn kcpuset_isotherset "kcpuset_t * kcp" "cpuid_t cpu"
+.Ft bool
.Fn kcpuset_iszero "kcpuset_t *kcp"
.Ft bool
.Fn kcpuset_match "const kcpuset_t *kcp1" "const kcpuset_t *kcp2"
.Ft void
.Fn kcpuset_merge "kcpuset_t *kcp1" "kcpuset_t *kcp2"
+.Ft int
+.Fn kcpuset_countset "kcpuset_t *kcp1"
.Ft void
.Fn kcpuset_atomic_set "kcpuset_t *kcp" "cpuid_t cpu"
.Ft void
@@ -177,12 +183,20 @@ Removes
from the set
.Fa kcp .
.It Fn kcpuset_isset "kcp" "cpu"
-Returns 1 if
+Returns true if
.Fa cpu
is part of the
.Tn CPU
set
.Fa kcp .
+.It Fn kcpuset_isotherset "kcp" "cpu"
+Returns true if there any CPUs
+other than
+.Fa cpu
+in the
+.Tn CPU
+set
+.Fa kcp .
.It Fn kcpuset_iszero "kcp"
Returns true if the set
.Fa kcp
@@ -198,6 +212,9 @@ Merges the set
.Fa kcp2
to the set
.Fa kcp1 .
+.It Fn kcpuset_countset "kcp"
+Counts how many CPUs are in the set
+.Fa kcp .
.It Fn kcpuset_atomic_set "kcp" "cpu"
The
.Fn kcpuset_atomic_set