summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrmind <rmind@NetBSD.org>2008-10-18 03:37:41 +0000
committerrmind <rmind@NetBSD.org>2008-10-18 03:37:41 +0000
commit43819fe5abaed7301c793262665665af8784d2c8 (patch)
tree75fe85f50580e3803db394af1d1e5ccbe3ee1e37 /lib
parent4317807e7744e7743c71e89e87eaab49d197cce4 (diff)
Do not recommend to mix affinity(3) with pset(3).
Diffstat (limited to 'lib')
-rw-r--r--lib/libpthread/affinity.313
-rw-r--r--lib/librt/pset.317
2 files changed, 16 insertions, 14 deletions
diff --git a/lib/libpthread/affinity.3 b/lib/libpthread/affinity.3
index 2d0576126b2..b64704efa9c 100644
--- a/lib/libpthread/affinity.3
+++ b/lib/libpthread/affinity.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: affinity.3,v 1.2 2008/09/12 13:39:04 rmind Exp $
+.\" $NetBSD: affinity.3,v 1.3 2008/10/18 03:37:41 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 September 12, 2008
+.Dd October 18, 2008
.Dt AFFINITY 3
.Os
.Sh NAME
@@ -113,10 +113,11 @@ No thread could be found corresponding to the one specified by
.Fa thread .
.El
.Sh NOTES
-Thread affinity might be used together with the processor sets, see
-.Xr pset 3 .
-In such case, the affinity mask takes precedence over the assignment
-to processor sets.
+If thread affinity is used together with the processor sets, see
+.Xr pset 3 ,
+then affinity mask takes precedence over the assignment to processor
+sets.
+However, it is not recomended to combine these interfaces together.
.Sh SEE ALSO
.Xr cpuset 3 ,
.Xr pset 3 ,
diff --git a/lib/librt/pset.3 b/lib/librt/pset.3
index 493c31787f3..664b30e15de 100644
--- a/lib/librt/pset.3
+++ b/lib/librt/pset.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pset.3,v 1.6 2008/06/22 08:24:40 wiz Exp $
+.\" $NetBSD: pset.3,v 1.7 2008/10/18 03:37:41 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 October 18, 2008
.Dt PSET 3
.Os
.Sh NAME
@@ -141,7 +141,7 @@ is
.Dv PS_MYID ,
the processor set ID of the caller thread will be used.
.El
-.Ss NOTES
+.Sh NOTES
The
.Fa pset_bind
function can return the current processor set ID to which the
@@ -152,10 +152,11 @@ bound to different processor sets.
In such a case it is unspecified which thread will be used to return
the information.
.Pp
-Processor sets might be used together with the thread affinity, see
-.Xr affinity 3 .
-In such case, the affinity mask takes precedence over the assignment
-to processor sets.
+If processor sets are used together with the thread affinity, see
+.Xr affinity 3 ,
+then affinity mask takes precedence over the assignment to processor
+set.
+However, it is not recomended to combine these interfaces together.
.Sh RETURN VALUES
Upon successful completion these functions return 0.
Otherwise, \-1 is returned and
@@ -185,7 +186,7 @@ for current process:
perform_work();
if (pset_destroy(psid) \*[Lt] 0)
- err(EXIT_FAILURE, "pset_destroy")
+ err(EXIT_FAILURE, "pset_destroy");
.Ed
.Sh ERRORS
The