1pool_component_tPoo_oelleCmo(n3fPiOgOuLr)ation Manipulation Libproaorly_cFoumnpcotnieonnts_to_elem(3POOL)
2
3
4
6 pool_component_to_elem, pool_to_elem, pool_conf_to_elem,
7 pool_resource_to_elem - resource pool element-related functions
8
10 cc [ flag... ] file... -lpool [ library... ]
11 #include <pool.h>
12
13 pool_elem_t *pool_component_to_elem(pool_conf_t *conf,
14 pool_component_t *component);
15
16
17 pool_elem_t *pool_conf_to_elem(pool_conf_t *conf);
18
19
20 pool_elem_t *pool_resource_to_elem(pool_conf_t *conf
21 pool_resource_t *resource);
22
23
24 pool_elem_t *pool_to_elem(pool_conf_t *conf, pool_t *pool);
25
26
28 A pool element, as represented by a pool_elem_t, is a common abstrac‐
29 tion for any libpool entity that contains properties. All such types
30 can be converted to the opaque pool_elem_t type using the appropriate
31 conversion functions prototyped above. The conf argument for each func‐
32 tion refers to the target configuration to which the operation applies.
33
35 Upon successful completion, these functions return a pool_elem_t corre‐
36 sponding to the argument passed in. Otherwise they return NULL and
37 pool_error(3POOL) returns the pool-specific error value.
38
40 These function will fail if:
41
42 POE_BADPARAM The supplied configuration's status is not POF_VALID.
43
44
46 See attributes(5) for descriptions of the following attributes:
47
48
49
50
51 ┌─────────────────────────────┬─────────────────────────────┐
52 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │CSI │Enabled │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Unstable │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 libpool(3LIB), pool_error(3POOL), attributes(5)
63
64
65
66SunOS 5.11 23 Sep 2003 pool_component_to_elem(3POOL)