pool_component_to_elem.3pool revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
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]
pool_component_to_elem 3POOL "23 Sep 2003" "SunOS 5.11" "Pool Configuration Manipulation Library Functions"
NAME
pool_component_to_elem, pool_to_elem, pool_conf_to_elem, pool_resource_to_elem - resource pool element-related functions
SYNOPSIS

cc [ flag.\|.\|. ] file.\|.\|. -lpool [ library.\|.\|. ] 
#include <pool.h>

pool_elem_t *pool_component_to_elem(pool_conf_t *conf,
 pool_component_t *component);

pool_elem_t *pool_conf_to_elem(pool_conf_t *conf);

pool_elem_t *pool_resource_to_elem(pool_conf_t *conf
 pool_resource_t *resource);

pool_elem_t *pool_to_elem(pool_conf_t *conf, pool_t *pool);
DESCRIPTION

A pool element, as represented by a pool_elem_t, is a common abstraction for any libpool entity that contains properties. All such types can be converted to the opaque pool_elem_t type using the appropriate conversion functions prototyped above. The conf argument for each function refers to the target configuration to which the operation applies.

RETURN VALUES

Upon successful completion, these functions return a pool_elem_t corresponding to the argument passed in. Otherwise they return NULL and pool_error(3POOL) returns the pool-specific error value.

ERRORS

These function will fail if:

POE_BADPARAM

The supplied configuration's status is not POF_VALID.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
CSIEnabled
Interface StabilityUnstable
MT-LevelSafe
SEE ALSO

libpool(3LIB), pool_error(3POOL), attributes(5)