Query: pool_component_to_elem
OS: linux
Section: 3pool
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pool_component_to_elem(3POOL) Pool Configuration Manipulation Library Functions pool_component_to_elem(3POOL)NAMEpool_component_to_elem, pool_to_elem, pool_conf_to_elem, pool_resource_to_elem - resource pool element-related functionsSYNOPSIScc [ 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);DESCRIPTIONA 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 VALUESUpon 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.ERRORSThese function will fail if: POE_BADPARAM The supplied configuration's status is not POF_VALID.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |Unstable | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+SEE ALSOlibpool(3LIB), pool_error(3POOL), attributes(5) SunOS 5.10 23 Sep 2003 pool_component_to_elem(3POOL)