Module Name:    src
Committed By:   rmind
Date:           Sun Sep 16 22:22:45 UTC 2012

Modified Files:
        src/share/man/man9: kcpuset.9

Log Message:
Describe kcpuset_export_u32(9) routine.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/share/man/man9/kcpuset.9:1.4
--- src/share/man/man9/kcpuset.9:1.3	Sat Jul  7 21:26:36 2012
+++ src/share/man/man9/kcpuset.9	Sun Sep 16 22:22:45 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: kcpuset.9,v 1.3 2012/07/07 21:26:36 rmind Exp $ */
+.\" $NetBSD: kcpuset.9,v 1.4 2012/09/16 22:22:45 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 July 7, 2012
+.Dd September 16, 2012
 .Dt KCPUSET 9
 .Os
 .Sh NAME
@@ -49,6 +49,7 @@
 .Nm kcpuset_countset ,
 .Nm kcpuset_atomic_set ,
 .Nm kcpuset_atomic_clear
+.Nm kcpuset_export_32
 .Nd dynamic kernel CPU sets
 .Sh SYNOPSIS
 .In sys/kcpuset.h
@@ -90,6 +91,8 @@
 .Fn kcpuset_atomic_set "kcpuset_t *kcp" "cpuid_t cpu"
 .Ft void
 .Fn kcpuset_atomic_clear "kcpuset_t *kcp" "cpuid_t cpu"
+.Ft void
+.Fn kcpuset_export_u32 "const kcpuset_t *kcp" "uint32_t *bitfield" "size_t len"
 .Sh DESCRIPTION
 The machine-independent
 .Nm
@@ -231,6 +234,16 @@ from the
 set
 .Fa kcp
 atomically.
+.Fn kcpuset_export_u32 "kcp" "bitfield" "len"
+Exports the CPU set
+.Fa kcp
+into a format of 32-bit integer array,
+specified by
+.Fa bitfield
+and length in bytes by
+.Fa len .
+An integers is in the host byte-order and represents a bit field.
+The first bit at index zero represents CPU number 0, and so on.
 .El
 .Sh CODE REFERENCES
 The

Reply via email to