Lines Matching refs:nvp

393 new_cfgdata(namevalpr_t *nvp, diskmon_t *dmp)  in new_cfgdata()  argument
397 if (nvp != NULL) in new_cfgdata()
398 cdp->props = namevalpr_to_nvlist(nvp); in new_cfgdata()
410 cfgdata_add_namevalpr(cfgdata_t *cfgp, namevalpr_t *nvp) in cfgdata_add_namevalpr() argument
415 (void) nvlist_add_string(cfgp->props, nvp->name, nvp->value); in cfgdata_add_namevalpr()
446 nvlist_t *nvp = NULL; in check_indactions() local
449 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_indactions()
460 switch (nvlist_lookup_boolean(nvp, buf)) { in check_indactions()
462 (void) nvlist_add_boolean(nvp, buf); in check_indactions()
475 switch (nvlist_lookup_boolean(nvp, buf)) { in check_indactions()
488 nvlist_free(nvp); in check_indactions()
497 nvlist_t *nvp = NULL; in check_inds() local
501 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_inds()
519 switch (nvlist_lookup_boolean(nvp, buf)) { in check_inds()
521 (void) nvlist_add_boolean(nvp, buf); in check_inds()
541 nvlist_free(nvp); in check_inds()
550 nvlist_t *nvp = NULL; in check_indrules() local
556 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_indrules()
561 switch (nvlist_lookup_boolean(nvp, buf)) { in check_indrules()
567 (void) nvlist_add_boolean(nvp, buf); in check_indrules()
575 nvlist_free(nvp); in check_indrules()
586 nvlist_t *nvp = NULL; in check_consistent_ind_indrules() local
595 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_consistent_ind_indrules()
603 (void) nvlist_add_boolean(nvp, buf); in check_consistent_ind_indrules()
617 switch (nvlist_lookup_boolean(nvp, buf)) { in check_consistent_ind_indrules()
634 nvlist_free(nvp); in check_consistent_ind_indrules()
713 nvpair_t *nvp = nvlist_next_nvpair(nvlp, NULL); in print_props() local
716 while (nvp != NULL) { in print_props()
717 dm_assert(nvpair_type(nvp) == DATA_TYPE_STRING); in print_props()
718 name = nvpair_name(nvp); in print_props()
721 nvp = nvlist_next_nvpair(nvlp, nvp); in print_props()
796 namevalpr_t nvp; in config_get() local
810 nvp.name = (char *)fmd_props[i].fmdp_name; in config_get()
832 nvp.value = buf; in config_get()
835 nvp.value = str; in config_get()
839 nvp.name, nvp.value); in config_get()
841 cfgdata_add_namevalpr(config_data, &nvp); in config_get()