Lines Matching refs:pconf
4024 create_tmp_pset(char *pool_err, int err_size, pool_conf_t *pconf, pool_t *pool, in create_tmp_pset() argument
4031 if ((res = pool_resource_create(pconf, "pset", name)) == NULL) in create_tmp_pset()
4034 if (pool_associate(pconf, pool, res) != PO_SUCCESS) in create_tmp_pset()
4037 if ((elem = pool_resource_to_elem(pconf, res)) == NULL) in create_tmp_pset()
4046 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) { in create_tmp_pset()
4054 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) { in create_tmp_pset()
4065 create_tmp_pool(char *pool_err, int err_size, pool_conf_t *pconf, char *name, in create_tmp_pool() argument
4072 if (pool_conf_open(pconf, NULL, PO_TEMP) != PO_SUCCESS) { in create_tmp_pool()
4077 if ((pool = pool_create(pconf, name)) == NULL) { in create_tmp_pool()
4087 if ((elem = pool_to_elem(pconf, pool)) == NULL) { in create_tmp_pool()
4100 if (pool_put_property(pconf, elem, "pool.importance", val) in create_tmp_pool()
4110 if ((res = create_tmp_pset(pool_err, err_size, pconf, pool, name, in create_tmp_pool()
4116 if (pool_conf_status(pconf) == POF_INVALID) { in create_tmp_pool()
4125 if (pool_conf_validate(pconf, POV_RUNTIME) != PO_SUCCESS) { in create_tmp_pool()
4134 if (pool_conf_commit(pconf, 1) != PO_SUCCESS) in create_tmp_pool()
4138 (void) pool_conf_close(pconf); in create_tmp_pool()
4143 get_running_tmp_pset(pool_conf_t *pconf, pool_t *pool, pool_resource_t *pset, in get_running_tmp_pset() argument
4152 pe = pool_to_elem(pconf, pool); in get_running_tmp_pset()
4153 if (pool_get_property(pconf, pe, "pool.importance", pv) in get_running_tmp_pset()
4165 pe = pool_resource_to_elem(pconf, pset); in get_running_tmp_pset()
4166 if (pool_get_property(pconf, pe, "pset.min", pv) != POC_INVAL) { in get_running_tmp_pset()
4173 if (pool_get_property(pconf, pe, "pset.max", pv) != POC_INVAL) { in get_running_tmp_pset()
4197 verify_del_tmp_pool(pool_conf_t *pconf, char *tmp_name, char *pool_err, in verify_del_tmp_pool() argument
4207 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR) in verify_del_tmp_pool()
4213 pool = pool_get_pool(pconf, tmp_name); in verify_del_tmp_pool()
4214 pset = pool_get_resource(pconf, "pset", tmp_name); in verify_del_tmp_pool()
4225 if (get_running_tmp_pset(pconf, pool, pset, &pset_current) in verify_del_tmp_pool()
4241 pool_resource_destroy(pconf, pset) != PO_SUCCESS) { in verify_del_tmp_pool()
4247 pool_destroy(pconf, pool) != PO_SUCCESS) { in verify_del_tmp_pool()
4253 if (pool_conf_commit(pconf, 0) != PO_SUCCESS) in verify_del_tmp_pool()
4258 (void) pool_conf_close(pconf); in verify_del_tmp_pool()
4271 pool_conf_t *pconf; in zonecfg_destroy_tmp_pool() local
4280 if ((pconf = pool_conf_alloc()) == NULL) in zonecfg_destroy_tmp_pool()
4285 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR) in zonecfg_destroy_tmp_pool()
4288 pool_conf_free(pconf); in zonecfg_destroy_tmp_pool()
4292 pool = pool_get_pool(pconf, tmp_name); in zonecfg_destroy_tmp_pool()
4293 pset = pool_get_resource(pconf, "pset", tmp_name); in zonecfg_destroy_tmp_pool()
4300 if (pset != NULL && pool_resource_destroy(pconf, pset) != PO_SUCCESS) { in zonecfg_destroy_tmp_pool()
4305 if (pool != NULL && pool_destroy(pconf, pool) != PO_SUCCESS) { in zonecfg_destroy_tmp_pool()
4311 if (pool_conf_commit(pconf, 0) != PO_SUCCESS) in zonecfg_destroy_tmp_pool()
4315 (void) pool_conf_close(pconf); in zonecfg_destroy_tmp_pool()
4316 pool_conf_free(pconf); in zonecfg_destroy_tmp_pool()
4344 pool_conf_t *pconf; in zonecfg_bind_tmp_pool() local
4371 if ((pconf = pool_conf_alloc()) == NULL) in zonecfg_bind_tmp_pool()
4380 if ((err = verify_del_tmp_pool(pconf, tmp_name, pool_err, err_size, in zonecfg_bind_tmp_pool()
4382 pool_conf_free(pconf); in zonecfg_bind_tmp_pool()
4387 err = create_tmp_pool(pool_err, err_size, pconf, tmp_name, in zonecfg_bind_tmp_pool()
4390 pool_conf_free(pconf); in zonecfg_bind_tmp_pool()