Lines Matching defs:pconf

4185 create_tmp_pset(char *pool_err, int err_size, pool_conf_t *pconf, pool_t *pool,
4192 if ((res = pool_resource_create(pconf, "pset", name)) == NULL)
4195 if (pool_associate(pconf, pool, res) != PO_SUCCESS)
4198 if ((elem = pool_resource_to_elem(pconf, res)) == NULL)
4207 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) {
4215 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) {
4226 create_tmp_pool(char *pool_err, int err_size, pool_conf_t *pconf, char *name,
4233 if (pool_conf_open(pconf, NULL, PO_TEMP) != PO_SUCCESS) {
4238 if ((pool = pool_create(pconf, name)) == NULL) {
4248 if ((elem = pool_to_elem(pconf, pool)) == NULL) {
4261 if (pool_put_property(pconf, elem, "pool.importance", val)
4271 if ((res = create_tmp_pset(pool_err, err_size, pconf, pool, name,
4277 if (pool_conf_status(pconf) == POF_INVALID) {
4286 if (pool_conf_validate(pconf, POV_RUNTIME) != PO_SUCCESS) {
4295 if (pool_conf_commit(pconf, 1) != PO_SUCCESS)
4299 (void) pool_conf_close(pconf);
4304 get_running_tmp_pset(pool_conf_t *pconf, pool_t *pool, pool_resource_t *pset,
4313 pe = pool_to_elem(pconf, pool);
4314 if (pool_get_property(pconf, pe, "pool.importance", pv)
4326 pe = pool_resource_to_elem(pconf, pset);
4327 if (pool_get_property(pconf, pe, "pset.min", pv) != POC_INVAL) {
4334 if (pool_get_property(pconf, pe, "pset.max", pv) != POC_INVAL) {
4358 verify_del_tmp_pool(pool_conf_t *pconf, char *tmp_name, char *pool_err,
4368 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR)
4374 pool = pool_get_pool(pconf, tmp_name);
4375 pset = pool_get_resource(pconf, "pset", tmp_name);
4386 if (get_running_tmp_pset(pconf, pool, pset, &pset_current)
4402 pool_resource_destroy(pconf, pset) != PO_SUCCESS) {
4408 pool_destroy(pconf, pool) != PO_SUCCESS) {
4414 if (pool_conf_commit(pconf, 0) != PO_SUCCESS)
4419 (void) pool_conf_close(pconf);
4432 pool_conf_t *pconf;
4441 if ((pconf = pool_conf_alloc()) == NULL)
4446 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR)
4449 pool_conf_free(pconf);
4453 pool = pool_get_pool(pconf, tmp_name);
4454 pset = pool_get_resource(pconf, "pset", tmp_name);
4461 if (pset != NULL && pool_resource_destroy(pconf, pset) != PO_SUCCESS) {
4466 if (pool != NULL && pool_destroy(pconf, pool) != PO_SUCCESS) {
4472 if (pool_conf_commit(pconf, 0) != PO_SUCCESS)
4476 (void) pool_conf_close(pconf);
4477 pool_conf_free(pconf);
4505 pool_conf_t *pconf;
4532 if ((pconf = pool_conf_alloc()) == NULL)
4541 if ((err = verify_del_tmp_pool(pconf, tmp_name, pool_err, err_size,
4543 pool_conf_free(pconf);
4548 err = create_tmp_pool(pool_err, err_size, pconf, tmp_name,
4551 pool_conf_free(pconf);