Copyright (c) 2003, 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]
cc [ flag.\|.\|. ] file.\|.\|. -lpool [ library.\|.\|. ] #include <pool.h> const char *pool_component_info(pool_conf_t *conf, pool_component_t *component, int flags);
pool_resource_t *pool_get_owning_resource(pool_conf_t *conf, pool_component_t *component);
The pool_component_info() function returns a string describing component. The string is allocated with malloc(3C). The caller is responsible for freeing the returned string. The flags argument is ignored.
The pool_get_owning_resource() function returns the resource currently containing component. Every component is contained by a resource.
Upon successful completion, pool_get_owning_resource() returns the owning resource. Otherwise it returns NULL and pool_error() returns the pool-specific error value.
The supplied configuration's status is not POF_VALID or the flags parameter is neither 0 or 1.
The configuration is invalid.
A system error has occurred. Check the system error code for more details.
The pool_get_owning_resource() function will fail if: POE_BADPARAM
The supplied configuration's status is not POF_VALID.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
CSI Enabled |
Interface Stability Unstable |
MT-Level Safe |