summaryrefslogtreecommitdiffstats
path: root/share/man/man3/pthread_affinity_np.3
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2010-01-12 18:07:12 +0000
committerbrueffer <brueffer@FreeBSD.org>2010-01-12 18:07:12 +0000
commit30ecbe64eeaf9ee2deeafd7078beac114a37cad6 (patch)
tree8d4d62eea87e52132ce605f993215aa819e4696f /share/man/man3/pthread_affinity_np.3
parent0c2da89ac473d10c99cb369963dc789d04986c15 (diff)
downloadFreeBSD-src-30ecbe64eeaf9ee2deeafd7078beac114a37cad6.zip
FreeBSD-src-30ecbe64eeaf9ee2deeafd7078beac114a37cad6.tar.gz
Various fixes.
Diffstat (limited to 'share/man/man3/pthread_affinity_np.3')
-rw-r--r--share/man/man3/pthread_affinity_np.317
1 files changed, 8 insertions, 9 deletions
diff --git a/share/man/man3/pthread_affinity_np.3 b/share/man/man3/pthread_affinity_np.3
index b08720c..a04ba97 100644
--- a/share/man/man3/pthread_affinity_np.3
+++ b/share/man/man3/pthread_affinity_np.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 8, 2010
+.Dd January 12, 2010
.Dt PTHREAD_AFFINITY_NP 3
.Os
.Sh NAME
@@ -44,17 +44,17 @@
.Fn pthread_getaffinity_np
and
.Fn pthread_setaffinity_np
-allow the manipulation of sets of CPUs available to specified thread.
+allow the manipulation of sets of CPUs available to the specified thread.
.Pp
Masks of type
.Ft cpuset_t
are composed using the
-.Xr CPU_SET 2
+.Xr CPU_SET 3
macros.
The kernel tolerates large sets as long as all CPUs specified
in the set exist.
Sets smaller than the kernel uses generate an error on calls to
-.Fn pthread_getaffinity_np
+.Fn pthread_getaffinity_np
even if the result set would fit within the user supplied set.
Calls to
.Fn pthread_setaffinity_np
@@ -75,14 +75,13 @@ retrieves the
mask from the thread specified by
.Fa td ,
and stores it in the space provided by
-.Fa cpumaskp .
+.Fa cpusetp .
.Pp
.Fn pthread_setaffinity_np
attempts to set the mask for the thread specified by
.Fa td
to the value in
-.Fa cpumaskp .
-.Pp
+.Fa cpusetp .
.Sh RETURN VALUES
If successful, the
.Fn pthread_getaffinity_np
@@ -105,7 +104,7 @@ call would leave a thread without a valid CPU to run on because the set
does not overlap with the thread's anonymous mask.
.It Bq Er EFAULT
The
-.Fa cpumaskp
+.Fa cpusetp
pointer passed was invalid.
.It Bq Er ESRCH
The thread specified by the
@@ -127,7 +126,7 @@ operation.
.Xr CPU_SET 3 ,
.Xr pthread 3 ,
.Xr pthread_attr_get_affinity_np 3 ,
-.Xr pthread_attr_set_affinity_np 3 .
+.Xr pthread_attr_set_affinity_np 3
.Sh STANDARDS
The
.Nm pthread_getaffinity_np
OpenPOWER on IntegriCloud