Do not recommend to mix affinity(3) with pset(3).

This commit is contained in:
rmind 2008-10-18 03:37:41 +00:00
parent 4317807e77
commit 43819fe5ab
2 changed files with 16 additions and 14 deletions

View File

@ -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 ,

View File

@ -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