Lines Matching defs:conf

146 commit_create(pool_conf_t *conf, pool_elem_t **e1)
161 if ((pool = pool_create(conf, name)) == NULL) {
185 if ((res = pool_resource_create(conf, res_type, name)) ==
666 get_elem_list(const pool_conf_t *conf, int type, uint_t *nelem)
679 elems[0] = pool_conf_to_elem(conf);
682 if ((pl = pool_query_pools(conf, nelem, NULL)) != NULL) {
687 if ((rl = pool_query_resources(conf, nelem, NULL)) != NULL) {
699 if ((cl = pool_query_components(conf, nelem, NULL)) != NULL) {
720 share_resources(pool_conf_t *conf)
739 if (add_importance_props(conf) != PO_SUCCESS) {
740 (void) remove_importance_props(conf);
744 if ((resources = pool_query_resources(conf, &nelem, props)) != NULL) {
756 (void) remove_importance_props(conf);
761 (void) remove_importance_props(conf);
1153 set_importance_cb(pool_conf_t *conf, pool_t *pool, void *unused)
1160 if (pool_get_property(conf, TO_ELEM(pool), "pool.importance", &val) !=
1166 if ((res = pool_query_pool_resources(conf, pool, &nelem, NULL)) ==
1174 if (pool_get_property(conf, elem, "_importance", &val) ==
1179 (void) pool_put_property(conf, elem, "_importance",
1195 unset_importance_cb(pool_conf_t *conf, pool_t *pool, void *unused)
1200 if ((res = pool_query_pool_resources(conf, pool, &nelem, NULL)) ==
1205 if (pool_rm_property(conf, TO_ELEM(res[i]), "_importance") ==
1222 add_importance_props(pool_conf_t *conf)
1224 return (pool_walk_pools(conf, NULL, set_importance_cb));
1234 remove_importance_props(pool_conf_t *conf)
1236 return (pool_walk_pools(conf, NULL, unset_importance_cb));
1250 pool_conf_commit_sys(pool_conf_t *conf, int validate)
1262 if (pool_conf_validate(conf, POV_RUNTIME) != PO_SUCCESS) {
1271 if (diff_and_fix(conf, dyn) != PO_SUCCESS) {
1293 clone_element(pool_conf_t *conf, pool_elem_t *pe, const char *name,
1328 clean_element(pool_conf_t *conf, pool_elem_t *pe, const char *name,
1339 return (pool_rm_property(conf, (pool_elem_t *)pe, name) == PO_FAIL);