Pool Configuration Manipulation Library Functions
pool_component_to_elem(3POOL)
NAME
pool_component_to_elem, pool_to_elem, pool_conf_to_elem,
pool_resource_to_elem - resource pool element-related func-
tionsSYNOPSIS
cc [ flag... ] file... -lpool [ library... ]
#include
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 apool_elem_t corresponding to the argument passed in. Other-
wise 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 attri-
butes:SunOS 5.11 Last change: 23 Sep 2003 1
Pool Configuration Manipulation Library Functionspool_component_to_elem(3POOL)
______________________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| CSI | Enabled ||_____________________________|_____________________________|
| Interface Stability | Uncommitted ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libpool(3LIB), pool_error(3POOL), attributes(5)
SunOS 5.11 Last change: 23 Sep 2003 2
Pool Configuration Manipulation Library Functionspool_component_to_elem(3POOL)
SunOS 5.11 Last change: 23 Sep 2003 3