2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH POOL_COMPONENT_INFO 3POOL "April 9, 2016"
8 pool_component_info, pool_get_owning_resource \- resource pool component
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ]
16 \fBconst char *\fR\fBpool_component_info\fR(\fBpool_conf_t *\fR\fIconf\fR,
17 \fBpool_component_t *\fR\fIcomponent\fR, \fBint\fR \fIflags\fR);
22 \fBpool_resource_t *\fR\fBpool_get_owning_resource\fR(\fBpool_conf_t *\fR\fIconf\fR,
23 \fBpool_component_t *\fR\fIcomponent\fR);
28 Certain resources, such as processor sets, are composed of resource components.
29 Informational and ownership attributes of resource components are made
30 available with the \fBpool_component_info()\fR and
31 \fBpool_get_owning_resource()\fR functions. The \fIconf\fR argument for each
32 function refers to the target configuration to which the operation applies.
35 The \fBpool_component_info()\fR function returns a string describing
36 \fIcomponent\fR. The string is allocated with \fBmalloc\fR(3C). The caller is
37 responsible for freeing the returned string. The \fIflags\fR argument is
41 The \fBpool_get_owning_resource()\fR function returns the resource currently
42 containing \fIcomponent\fR. Every component is contained by a resource.
45 Upon successful completion, \fBpool_component_info()\fR returns a string.
46 Otherwise it returns \fINULL\fR and \fBpool_error\fR(3POOL) returns the
47 pool-specific error value.
50 Upon successful completion, \fBpool_get_owning_resource()\fR returns the owning
51 resource. Otherwise it returns \fINULL\fR and \fBpool_error()\fR returns the
52 pool-specific error value.
55 The \fBpool_component_info()\fR function will fail if:
59 \fB\fBPOE_BADPARAM\fR\fR
62 The supplied configuration's status is not \fBPOF_VALID\fR or the \fIflags\fR
63 paramter is neither 0 or 1.
69 \fB\fBPOE_INVALID_CONF\fR\fR
72 The configuration is invalid.
78 \fB\fBPOE_SYSTEM\fR\fR
81 A system error has occurred. Check the system error code for more details.
86 The \fBpool_get_owning_resource()\fR function will fail if:
90 \fB\fBPOE_BADPARAM\fR\fR
93 The supplied configuration's status is not \fBPOF_VALID\fR.
98 See \fBattributes\fR(5) for descriptions of the following attributes:
106 ATTRIBUTE TYPE ATTRIBUTE VALUE
110 Interface Stability Unstable
117 \fBlibpool\fR(3LIB), \fBpool_error\fR(3POOL), \fBattributes\fR(5)