Print this page
6534 Improve processor_bind(2) EINVAL description
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Garrett D'Amore <garrett@damore.org>

@@ -1,11 +1,11 @@
 '\" te
 .\" Copyright (c) 2009, Sun Microsystems, Inc.  All Rights Reserved.
 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH PROCESSOR_BIND 2 "Mar 13, 2009"
+.TH PROCESSOR_BIND 2 "Dec 27, 2015"
 .SH NAME
 processor_bind \- bind LWPs to a processor
 .SH SYNOPSIS
 .LP
 .nf

@@ -16,11 +16,10 @@
 \fBint\fR \fBprocessor_bind\fR(\fBidtype_t\fR \fIidtype\fR, \fBid_t\fR \fIid\fR, \fBprocessorid_t\fR \fIprocessorid\fR,
      \fBprocessorid_t *\fR\fIobind\fR);
 .fi
 
 .SH DESCRIPTION
-.sp
 .LP
 The \fBprocessor_bind()\fR function binds the LWP (lightweight process) or set
 of LWPs specified by \fIidtype\fR and \fIid\fR to the processor specified by
 \fIprocessorid\fR. If \fIobind\fR is not \fINULL\fR, this function also sets
 the \fBprocessorid_t\fR variable pointed to by \fIobind\fR to the previous

@@ -72,16 +71,14 @@
 though an error is returned.
 .sp
 .LP
 Processor bindings are inherited across \fBfork\fR(2) and \fBexec\fR(2).
 .SH RETURN VALUES
-.sp
 .LP
 Upon successful completion, \fB0\fR is returned.  Otherwise, \fB\(mi1\fR is
 returned and  \fBerrno\fR is set to indicate the error.
 .SH ERRORS
-.sp
 .LP
 The \fBprocessor_bind()\fR function will fail if:
 .sp
 .ne 2
 .na

@@ -96,16 +93,17 @@
 .ne 2
 .na
 \fB\fBEINVAL\fR\fR
 .ad
 .RS 11n
-The specified processor is not on-line, or the \fIidtype\fR argument was not
-\fBP_PID\fR, \fBP_LWPID\fR, \fBP_PROJID\fR, \fBP_TASKID\fR, \fBP_CTID\fR, or
-\fBP_ZONEID\fR.
+The processor is not on-line.
 .sp
-The caller is in a non-global zone, the pools facility is active, and the
-processor is not a member of the zone's pool's processor set.
+The LWP is bound to a processor set or resource pool for which the
+processor is not a member.
+.sp
+The \fIidtype\fR argument is not \fBP_PID\fR, \fBP_LWPID\fR,
+\fBP_PROJID\fR, \fBP_TASKID\fR, \fBP_CTID\fR, or \fBP_ZONEID\fR.
 .RE
 
 .sp
 .ne 2
 .na

@@ -135,12 +133,10 @@
 No processes, \fBLWP\fRs, or tasks were found to match the criteria specified
 by \fIidtype\fR and  \fIid\fR.
 .RE
 
 .SH ATTRIBUTES
-.sp
-.LP
 See \fBattributes\fR(5) for descriptions of the following attributes:
 .sp
 
 .sp
 .TS

@@ -153,11 +149,9 @@
 _
 MT-Level        Async-Signal-Safe
 .TE
 
 .SH SEE ALSO
-.sp
-.LP
 \fBpooladm\fR(1M), \fBpsradm\fR(1M), \fBpsrinfo\fR(1M), \fBzoneadm\fR(1M),
 \fBexec\fR(2), \fBfork\fR(2), \fBp_online\fR(2), \fBpset_bind\fR(2),
 \fBsysconf\fR(3C), \fBprocess\fR(4), \fBproject\fR(4), \fBattributes\fR(5),
 \fBprivileges\fR(5)