Lines Matching refs:pke

669 	pool_knl_elem_t *pke = (pool_knl_elem_t *)key;
670 pool_conf_t *conf = TO_CONF(TO_ELEM(pke));
673 assert(dict_remove(prov->pkc_elements, pke) != NULL);
676 pool_elem_dprintf(TO_ELEM(pke));
678 pool_knl_elem_free(pke, PO_TRUE);
691 pool_knl_elem_t *pke = (pool_knl_elem_t *)key;
692 pool_conf_t *conf = TO_CONF(TO_ELEM(pke));
696 if (pke->pke_ltime < prov->pkc_ltime)
697 (void) dict_put(dead_map, pke, pke);
1255 pool_knl_elem_t *pke = (pool_knl_elem_t *)key;
1269 for (parent = pke; parent != NULL;
1285 if (pool_get_property(TO_CONF(TO_ELEM(pke)),
1286 (pool_elem_t *)pke,
1943 pool_knl_elem_t *pke = (pool_knl_elem_t *)pe;
1945 return ((pool_elem_t *)pke->pke_parent);
2214 pool_knl_elem_t *pke = (pool_knl_elem_t *)key;
2217 dprintf("leak elem:%p\n", pke);
2218 if (pke->pke_properties != NULL) {
2219 nvlist_print(stdout, pke->pke_properties);
2222 assert(dict_get(map, pke) == NULL);
2230 pool_knl_elem_free(pool_knl_elem_t *pke, int freeprop)
2233 pool_conf_t *conf = TO_CONF(TO_ELEM(pke));
2235 pke) == NULL)
2236 dprintf("%p, wasn't in the leak map\n", pke);
2238 pool_elem_dprintf(TO_ELEM(pke));
2240 dprintf("released %p\n", pke);
2243 nvlist_free(pke->pke_properties);
2245 free(pke);
2257 pool_knl_elem_t *pke = (pool_knl_elem_t *)key;
2261 dprintf("about to release %p ", pke);
2262 pool_elem_dprintf(TO_ELEM(pke));
2264 pool_knl_elem_free(pke, PO_TRUE);
2302 pool_knl_elem_t *pke = (pool_knl_elem_t *)pe;
2310 if ((pair = pool_knl_find_nvpair(pke->pke_properties, name)) == NULL) {
2394 pool_knl_elem_t *pke = (pool_knl_elem_t *)pe;
2402 if ((bp = pool_knl_find_nvpair(pke->pke_properties, name)) != NULL) {
2413 if (pool_knl_nvlist_add_value(pke->pke_properties, name, val) !=
2432 ap = pool_knl_find_nvpair(pke->pke_properties, name);
2488 pool_knl_elem_t *pke = (pool_knl_elem_t *)pe;
2493 if (pool_knl_find_nvpair(pke->pke_properties, name) == NULL) {
2508 (void) nvlist_remove_all(pke->pke_properties, (char *)name);
2537 (void) nvlist_remove_all(pke->pke_properties, (char *)name);
2553 pool_knl_elem_t *pke = (pool_knl_elem_t *)pe;
2558 for (pair = nvlist_next_nvpair(pke->pke_properties, NULL); pair != NULL;
2559 pair = nvlist_next_nvpair(pke->pke_properties, pair))
2565 for (pair = nvlist_next_nvpair(pke->pke_properties, NULL); pair != NULL;
2566 pair = nvlist_next_nvpair(pke->pke_properties, pair), i++) {
2584 pool_knl_result_set_append(pool_knl_result_set_t *rs, pool_knl_elem_t *pke)
2590 rs->pkr_list[rs->pkr_count++] = pke;