Describe kcpuset_export_u32(9) routine.
This commit is contained in:
parent
4dc5d07777
commit
1219124711
|
@ -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>
|
.\" Copyright (c) 2011 Jukka Ruohonen <jruohonen.iki.fi>
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd July 7, 2012
|
.Dd September 16, 2012
|
||||||
.Dt KCPUSET 9
|
.Dt KCPUSET 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -49,6 +49,7 @@
|
||||||
.Nm kcpuset_countset ,
|
.Nm kcpuset_countset ,
|
||||||
.Nm kcpuset_atomic_set ,
|
.Nm kcpuset_atomic_set ,
|
||||||
.Nm kcpuset_atomic_clear
|
.Nm kcpuset_atomic_clear
|
||||||
|
.Nm kcpuset_export_32
|
||||||
.Nd dynamic kernel CPU sets
|
.Nd dynamic kernel CPU sets
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/kcpuset.h
|
.In sys/kcpuset.h
|
||||||
|
@ -90,6 +91,8 @@
|
||||||
.Fn kcpuset_atomic_set "kcpuset_t *kcp" "cpuid_t cpu"
|
.Fn kcpuset_atomic_set "kcpuset_t *kcp" "cpuid_t cpu"
|
||||||
.Ft void
|
.Ft void
|
||||||
.Fn kcpuset_atomic_clear "kcpuset_t *kcp" "cpuid_t cpu"
|
.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
|
.Sh DESCRIPTION
|
||||||
The machine-independent
|
The machine-independent
|
||||||
.Nm
|
.Nm
|
||||||
|
@ -231,6 +234,16 @@ from the
|
||||||
set
|
set
|
||||||
.Fa kcp
|
.Fa kcp
|
||||||
atomically.
|
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
|
.El
|
||||||
.Sh CODE REFERENCES
|
.Sh CODE REFERENCES
|
||||||
The
|
The
|
||||||
|
|
Loading…
Reference in New Issue