Arguments were swapped for cpuset_set(), cpuset_clr(), cpuset_isset()
functions, but man pages were not updated (hi Christos!).
This commit is contained in:
parent
dee5129905
commit
0f80b1578d
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: cpuset.3,v 1.2 2008/06/22 08:25:26 wiz Exp $
|
||||
.\" $NetBSD: cpuset.3,v 1.3 2008/09/12 13:39:04 rmind Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -27,7 +27,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd June 16, 2008
|
||||
.Dd September 12, 2008
|
||||
.Dt CPUSET 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -48,11 +48,11 @@
|
||||
.Ft void
|
||||
.Fn cpuset_zero "cpuset_t *set"
|
||||
.Ft int
|
||||
.Fn cpuset_set "cpuset_t *set" "cpuid_t cpu"
|
||||
.Fn cpuset_set "cpuid_t cpu" "cpuset_t *set"
|
||||
.Ft int
|
||||
.Fn cpuset_clr "cpuset_t *set" "cpuid_t cpu"
|
||||
.Fn cpuset_clr "cpuid_t cpu" "cpuset_t *set"
|
||||
.Ft int
|
||||
.Fn cpuset_isset "const cpuset_t *set" "cpuid_t cpu"
|
||||
.Fn cpuset_isset "cpuid_t cpu" "const cpuset_t *set"
|
||||
.Ft size_t
|
||||
.Fn cpuset_size "const cpuset_t *set"
|
||||
.Sh DESCRIPTION
|
||||
@ -80,7 +80,7 @@ Makes the CPU-set specified by
|
||||
.Fa set
|
||||
clean, that is, memory is initialized to zero bytes, and none of
|
||||
the CPUs set.
|
||||
.It Fn cpuset_set set cpu
|
||||
.It Fn cpuset_set cpu set
|
||||
Sets the CPU specified by
|
||||
.Fa cpu
|
||||
in
|
||||
@ -88,7 +88,7 @@ in
|
||||
Returns zero on success, and \-1 if
|
||||
.Fa cpu
|
||||
is invalid.
|
||||
.It Fn cpuset_clr set cpu
|
||||
.It Fn cpuset_clr cpu set
|
||||
Clears the CPU specified by
|
||||
.Fa cpu
|
||||
in the CPU-set
|
||||
@ -96,7 +96,7 @@ in the CPU-set
|
||||
Returns zero on success, and \-1 if
|
||||
.Fa cpu
|
||||
is invalid.
|
||||
.It Fn cpuset_isset set cpu
|
||||
.It Fn cpuset_isset cpu set
|
||||
Checks if CPU specified by
|
||||
.Fa cpu
|
||||
is set in the CPU-set
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: affinity.3,v 1.1 2008/06/16 14:25:49 rmind Exp $
|
||||
.\" $NetBSD: affinity.3,v 1.2 2008/09/12 13:39:04 rmind Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -27,7 +27,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd June 15, 2008
|
||||
.Dd September 12, 2008
|
||||
.Dt AFFINITY 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -60,6 +60,7 @@ function gets the affinity mask of
|
||||
into
|
||||
.Fa set .
|
||||
.Pp
|
||||
Note that
|
||||
.Fa set
|
||||
must be created and initialized using the
|
||||
.Xr cpuset 3
|
||||
@ -84,7 +85,7 @@ thread to the CPU whose ID is 0:
|
||||
err(EXIT_FAILURE, "cpuset_create");
|
||||
}
|
||||
ci = 0;
|
||||
cpuset_set(ci);
|
||||
cpuset_set(ci, cset);
|
||||
|
||||
pth = pthread_self();
|
||||
error = pthread_setaffinity_np(pth, cpuset_size(cset), cset);
|
||||
|
Loading…
Reference in New Issue
Block a user