Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Document kcpuset_isotherset() and kcpuset_cou...



details:   https://anonhg.NetBSD.org/src/rev/c7e852cb8810
branches:  trunk
changeset: 780021:c7e852cb8810
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Jul 07 21:26:36 2012 +0000

description:
Document kcpuset_isotherset() and kcpuset_countset().

diffstat:

 share/man/man9/kcpuset.9 |  25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diffs (82 lines):

diff -r 51519e08adba -r c7e852cb8810 share/man/man9/kcpuset.9
--- a/share/man/man9/kcpuset.9  Sat Jul 07 20:45:09 2012 +0000
+++ b/share/man/man9/kcpuset.9  Sat Jul 07 21:26:36 2012 +0000
@@ -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 @@
 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 @@
 .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



Home | Main Index | Thread Index | Old Index