Lines Matching refs:pool
355 pool_t *pool = pool_default; in pool_lookup_pool_by_name() local
359 for (pool = list_head(&pool_list); pool; in pool_lookup_pool_by_name()
360 pool = list_next(&pool_list, pool)) { in pool_lookup_pool_by_name()
361 if (nvlist_lookup_string(pool->pool_props, in pool_lookup_pool_by_name()
363 return (pool); in pool_lookup_pool_by_name()
371 pool_t *pool = pool_default; in pool_lookup_pool_by_id() local
374 for (pool = list_head(&pool_list); pool; in pool_lookup_pool_by_id()
375 pool = list_next(&pool_list, pool)) { in pool_lookup_pool_by_id()
376 if (pool->pool_id == poolid) in pool_lookup_pool_by_id()
377 return (pool); in pool_lookup_pool_by_id()
385 pool_t *pool = pool_default; in pool_lookup_pool_by_pset() local
389 for (pool = list_head(&pool_list); pool != NULL; in pool_lookup_pool_by_pset()
390 pool = list_next(&pool_list, pool)) { in pool_lookup_pool_by_pset()
391 if (pool->pool_pset->pset_id == psetid) in pool_lookup_pool_by_pset()
392 return (pool); in pool_lookup_pool_by_pset()
404 pool_t *pool; in pool_pool_create() local
409 pool = kmem_zalloc(sizeof (pool_t), KM_SLEEP); in pool_pool_create()
410 pool->pool_id = *poolid = id_alloc(pool_ids); in pool_pool_create()
411 pool->pool_pset = pool_pset_default; in pool_pool_create()
413 list_insert_tail(&pool_list, pool); in pool_pool_create()
414 (void) nvlist_alloc(&pool->pool_props, NV_UNIQUE_NAME, KM_SLEEP); in pool_pool_create()
415 (void) nvlist_add_int64(pool->pool_props, "pool.sys_id", pool->pool_id); in pool_pool_create()
416 (void) nvlist_add_byte(pool->pool_props, "pool.default", 0); in pool_pool_create()
420 (void) nvlist_add_string(pool->pool_props, "pool.name", pool_name); in pool_pool_create()
454 pool_t *pool; in pool_pool_destroy() local
461 if ((pool = pool_lookup_pool_by_id(poolid)) == NULL) in pool_pool_destroy()
467 dzarg.old = pool; in pool_pool_destroy()
473 ASSERT(pool->pool_ref == 0); in pool_pool_destroy()
474 (void) nvlist_free(pool->pool_props); in pool_pool_destroy()
475 id_free(pool_ids, pool->pool_id); in pool_pool_destroy()
476 pool->pool_pset->pset_npools--; in pool_pool_destroy()
477 list_remove(&pool_list, pool); in pool_pool_destroy()
480 kmem_free(pool, sizeof (pool_t)); in pool_pool_destroy()
649 pool_t *pool = pool_default; in pool_lookup_id_by_pset() local
653 for (pool = list_head(&pool_list); pool != NULL; in pool_lookup_id_by_pset()
654 pool = list_next(&pool_list, pool)) { in pool_lookup_id_by_pset()
655 if (pool->pool_pset->pset_id == psetid) in pool_lookup_id_by_pset()
656 return (pool->pool_id); in pool_lookup_id_by_pset()
698 pool_t *pool; in pool_bind() local
704 if ((pool = pool_lookup_pool_by_id(poolid)) == NULL) in pool_bind()
716 return (pool_do_bind(pool, idtype, id, POOL_BIND_ALL)); in pool_bind()
745 pool_t *pool; in pool_query_binding() local
747 pool = zone_pool_get(curproc->p_zone); in pool_query_binding()
748 *poolid = pool->pool_id; in pool_query_binding()
796 pool_t *pool; in pool_pool_pack() local
803 for (pool = list_head(&pool_list); pool; in pool_pool_pack()
804 pool = list_next(&pool_list, pool)) { in pool_pool_pack()
805 if (!INGLOBALZONE(curproc) && myzonepool != pool) in pool_pool_pack()
811 (void) ea_attach_item(eo_pool, &pool->pool_id, sizeof (id_t), in pool_pool_pack()
813 (void) ea_attach_item(eo_pool, &pool->pool_pset->pset_id, in pool_pool_pack()
815 (void) nvlist_pack(pool->pool_props, &buf, &bufsz, in pool_pool_pack()
1004 pool_t *pool; in pool_pool_propput() local
1008 if ((pool = pool_lookup_pool_by_id(poolid)) == NULL) in pool_pool_propput()
1010 ret = pool_propput_common(pool->pool_props, pair, pool_prop_pool); in pool_pool_propput()
1020 pool_t *pool; in pool_pool_proprm() local
1023 if ((pool = pool_lookup_pool_by_id(poolid)) == NULL) in pool_pool_proprm()
1025 ret = pool_proprm_common(pool->pool_props, name, pool_prop_pool); in pool_pool_proprm()
1200 pool_get_class(pool_t *pool) in pool_get_class() argument
1207 if (nvlist_lookup_string(pool->pool_props, "pool.scheduler", in pool_get_class()
1290 pool_get_name(pool_t *pool, char **name) in pool_get_name() argument
1294 (void) nvlist_lookup_string(pool->pool_props, "pool.name", name); in pool_get_name()
1350 pool_do_bind(pool_t *pool, idtype_t idtype, id_t id, int flags) in pool_do_bind() argument
1367 if ((cid = pool_get_class(pool)) == POOL_CLASS_INVAL) in pool_do_bind()
1640 (rv = pset_bind_start(procs, pool)) != 0) { in pool_do_bind()
1650 psetid_t psetid = pool->pool_pset->pset_id; in pool_do_bind()
1692 if (p->p_pool != pool) { in pool_do_bind()
1695 p->p_pool = pool; in pool_do_bind()
1716 zone_pool_set(zone, pool); in pool_do_bind()