| POOL_COMPONENT_INFO(3POOL) | Pool Configuration Manipulation Library Functions | POOL_COMPONENT_INFO(3POOL) |
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.
POE_BADPARAM
POE_INVALID_CONF
POE_SYSTEM
The pool_get_owning_resource() function will fail if:
POE_BADPARAM
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| CSI | Enabled |
| Interface Stability | Unstable |
| MT-Level | Safe |
| January 15, 2020 |