/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_protocol.c | 52 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_authority() 91 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_fmri_module() 120 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_fault() 156 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_list() 223 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_rsrc_asru() 270 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_fmderror() 300 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_moderror() 335 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_xprt_ctl()
|
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg_test.c | 64 if (nvlist_alloc(&auth, NV_UNIQUE_NAME, 0) != 0 || in main() 65 nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0) != 0 || in main() 66 nvlist_alloc(&list, NV_UNIQUE_NAME, 0) != 0) { in main() 109 if (nvlist_alloc(&test_arr[i], NV_UNIQUE_NAME, 0) != 0) { in main()
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | devfm_machdep.c | 157 (void) nvlist_alloc(nvlp, NV_UNIQUE_NAME, KM_SLEEP); in populate_cpu() 248 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in fm_ioctl_physcpu_info() 300 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in fm_ioctl_cpu_retire() 329 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in fm_ioctl_gentopo_legacy() 392 (void) nvlist_alloc(&caches[i], NV_UNIQUE_NAME, KM_SLEEP); in fm_populate_cache() 464 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in fm_ioctl_cache_info()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses_facility.c | 192 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_indicator_mode() 227 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_indicator_mode() 299 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_sensor_reading() 381 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_sensor_state() 446 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_psu_state() 556 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_add_indicator() 650 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_add_sensor() 672 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) { in ses_add_sensor() 710 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_add_discrete() 746 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) { in ses_add_psu_status()
|
/illumos-gate/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.c | 78 ret = nvlist_alloc(&cfg_nv, NV_UNIQUE_NAME, 0); in srpt_GetConfig() 83 ret = nvlist_alloc(&hcanv, NV_UNIQUE_NAME, 0); in srpt_GetConfig() 214 ret = nvlist_alloc(&cfgnv, NV_UNIQUE_NAME, 0); in srpt_SetDefaultState() 281 ret = nvlist_alloc(&hcanv, NV_UNIQUE_NAME, 0); in srpt_SetTargetState()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | diskmon_conf.c | 168 if (nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0) != 0) { in namevalpr_to_nvlist() 339 (void) nvlist_alloc(&dmp->props, NV_UNIQUE_NAME, 0); in new_diskmon() 344 (void) nvlist_alloc(&dmp->app_props, NV_UNIQUE_NAME, 0); in new_diskmon() 399 else if (nvlist_alloc(&cdp->props, NV_UNIQUE_NAME, 0) != 0) { in new_cfgdata() 413 (void) nvlist_alloc(&cfgp->props, NV_UNIQUE_NAME, 0); in cfgdata_add_namevalpr() 449 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_indactions() 501 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_inds() 556 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_indrules() 595 (void) nvlist_alloc(&nvp, NV_UNIQUE_NAME, 0); in check_consistent_ind_indrules()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | dev.c | 218 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) in dev_fmri_nvl2str() 341 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0) in dev_fmri_str2nvl() 442 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in dev_fmri_present() 522 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in dev_fmri_replaced() 569 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in dev_fmri_unusable() 618 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in dev_fmri_service_state() 635 if (topo_mod_nvalloc(mp, &out, NV_UNIQUE_NAME) != 0) { in dev_fmri_create()
|
H A D | sw.c | 181 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0 || in sw_fmri_create() 182 topo_mod_nvalloc(mod, &obj, NV_UNIQUE_NAME) != 0) { in sw_fmri_create() 222 if (topo_mod_nvalloc(mod, &site, NV_UNIQUE_NAME) != 0) { in sw_fmri_create() 257 if (topo_mod_nvalloc(mod, &ctxt, NV_UNIQUE_NAME) != 0) { in sw_fmri_create() 510 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { in sw_fmri_nvl2str()
|
H A D | topo_mod.c | 313 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_hcfmri() 400 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_devfmri() 435 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_cpufmri() 474 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_memfmri() 513 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_pkgfmri() 545 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_modfmri() 585 if (topo_mod_nvalloc(mod, &args, NV_UNIQUE_NAME) != 0) in topo_mod_swfmri() 840 if ((err = topo_mod_nvalloc(mod, &auth, NV_UNIQUE_NAME)) != 0) { in topo_mod_auth() 973 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in topo_mod_hc_occupied()
|
H A D | topo_fmri.c | 190 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_str2nvl() 286 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_contains() 458 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in fmri_prop() 614 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_setprop() 660 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_getpgrp() 708 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_compare() 749 if ((*err = topo_hdl_nvalloc(thp, &ins, NV_UNIQUE_NAME)) != 0) in topo_fmri_create() 1072 if (topo_hdl_nvalloc(thp, &in, NV_UNIQUE_NAME) != 0) in topo_fmri_facility()
|
H A D | svc.c | 498 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { in svc_fmri_nvl2str() 531 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0) in svc_fmri_str2nvl() 823 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in svc_fmri_present() 847 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in svc_fmri_replaced() 872 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in svc_fmri_service_state() 896 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) in svc_fmri_unusable()
|
H A D | hc.c | 413 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) == 0) { in hc_compare() 573 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { in hc_fmri_nvl2str() 598 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0) in hc_base_fmri_create() 720 if (topo_mod_nvalloc(mod, &pa[i], NV_UNIQUE_NAME) < 0) in make_hc_pairs() 816 NV_UNIQUE_NAME) == 0) { in make_hc_auth() 878 if (topo_mod_nvalloc(mod, &nf, NV_UNIQUE_NAME) != 0) { in make_facility() 945 if (topo_mod_nvalloc(mod, &hcsp, NV_UNIQUE_NAME) != 0) in hc_fmri_str2nvl() 1007 if (topo_mod_nvalloc(mod, &hc, NV_UNIQUE_NAME) != 0) in hc_list_create() 1217 if (topo_mod_nvalloc(mod, &arg, NV_UNIQUE_NAME) != 0 || in hc_match() 1730 if (topo_mod_nvalloc(mod, &hap->ha_nvl, NV_UNIQUE_NAME) != 0) in hc_is_present() [all …]
|
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | libdiskstatus.c | 97 if (nvlist_alloc(&dsp->ds_state, NV_UNIQUE_NAME, 0) != 0) { in disk_status_open() 189 if ((err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0)) != 0) in disk_status_get() 199 if ((err = nvlist_alloc(&faults, NV_UNIQUE_NAME, 0)) != 0) in disk_status_get()
|
H A D | ds_scsi.c | 422 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0 || in load_modepages() 443 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0 || in load_modepages() 498 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0 || in verify_logpage() 570 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0 || in load_logpages() 1051 if (nvlist_alloc(&sip->si_dsp->ds_predfail, NV_UNIQUE_NAME, 0) != 0) in logpage_ie_analyze() 1093 if (nvlist_alloc(&sip->si_dsp->ds_overtemp, NV_UNIQUE_NAME, 0) != 0) in logpage_temp_analyze() 1149 if (nvlist_alloc(&sip->si_dsp->ds_testfail, NV_UNIQUE_NAME, 0) != 0) in logpage_selftest_analyze() 1214 if (nvlist_alloc(&sip->si_dsp->ds_ssmwearout, NV_UNIQUE_NAME, 0) != 0) in logpage_ssm_analyze() 1280 NV_UNIQUE_NAME, 0) != 0) in analyze_ie_sense()
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | dimm_topo.c | 111 (void) nvlist_alloc(&newrank[i], NV_UNIQUE_NAME, KM_SLEEP); in inhm_rank() 143 (void) nvlist_alloc(&newdimm, NV_UNIQUE_NAME, KM_SLEEP); in inhm_dimm() 215 (void) nvlist_alloc(&newchannel[i], NV_UNIQUE_NAME, KM_SLEEP); in inhm_dimmlist() 261 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in inhm_create_nvl()
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 284 NV_UNIQUE_NAME, 0); in it_nv_to_config() 335 NV_UNIQUE_NAME, 0); in it_nv_to_config() 462 ret = nvlist_alloc(&pnv, NV_UNIQUE_NAME, 0); in it_tgtlist_to_nv() 512 ret = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0); in it_tgt_to_nv() 615 ret = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0); in it_tpgt_to_nv() 691 ret = nvlist_alloc(&pnv, NV_UNIQUE_NAME, 0); in it_tpgtlist_to_nv() 799 ret = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0); in it_tpg_to_nv() 926 ret = nvlist_alloc(&pnv, NV_UNIQUE_NAME, 0); in it_tpglist_to_nv() 1115 ret = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0); in it_ini_to_nv() 1203 ret = nvlist_alloc(&pnv, NV_UNIQUE_NAME, 0); in it_inilist_to_nv()
|
/illumos-gate/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 194 if (nvlist_alloc(&nv_elems[n], NV_UNIQUE_NAME, 0) != 0) in convert_element() 207 if (nvlist_alloc(&nv_record, NV_UNIQUE_NAME, 0) != 0) { in convert_element() 329 ret = nvlist_alloc(&nv_segment, NV_UNIQUE_NAME, 0); in convert_packets_in_segment() 367 err = nvlist_alloc(&nv, NV_UNIQUE_NAME, 0); in convert_fru()
|
/illumos-gate/usr/src/lib/libipp/ |
H A D | libipp.c | 198 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_action_destroy() 309 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_action_info() 365 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_action_mod() 418 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_list_mods() 475 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_mod_list_actions()
|
/illumos-gate/usr/src/uts/common/contract/ |
H A D | process.c | 949 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP) == 0); in contract_process_exit() 967 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, in contract_process_exit() 1052 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP) == 0); in contract_process_fork() 1082 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP) == 0); in contract_process_core() 1097 VERIFY(nvlist_alloc(&gnvl, NV_UNIQUE_NAME, in contract_process_core() 1132 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP) == 0); in contract_process_hwerr() 1168 VERIFY(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP) == 0); in contract_process_sig() 1173 VERIFY(nvlist_alloc(&gnvl, NV_UNIQUE_NAME, in contract_process_sig()
|
/illumos-gate/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_publish.c | 209 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) in va2nvl() 373 if ((nvlist_nvflag(nvl) & NV_UNIQUE_NAME) != NV_UNIQUE_NAME) in do_publish() 392 if (nvlist_alloc(&tmpnvl, NV_UNIQUE_NAME, 0) != 0) in do_publish()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 63 err = nvlist_dup(detector, &new_detector, NV_UNIQUE_NAME); in fab_prep_basic_erpt() 133 if (nvlist_alloc(&erpt, NV_UNIQUE_NAME, 0) != 0) in fab_send_tgt_erpt() 150 if (nvlist_alloc(&detector, NV_UNIQUE_NAME, 0) != 0) { in fab_send_tgt_erpt() 204 if (nvlist_alloc(&erpt, NV_UNIQUE_NAME, 0) != 0) in fab_send_erpt() 939 if (nvlist_dup(erpt, &nvl, NV_UNIQUE_NAME) != 0 || in fab_send_erpt_all_rps() 940 nvlist_alloc(&detector, NV_UNIQUE_NAME, 0) != 0) { in fab_send_erpt_all_rps()
|
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | intel_nbdrv.c | 128 (void) nvlist_alloc(&newrank[i], NV_UNIQUE_NAME, KM_SLEEP); in inb_rank() 165 (void) nvlist_alloc(&newdimm, NV_UNIQUE_NAME, KM_SLEEP); in inb_dimm() 237 (void) nvlist_alloc(&newchannel[i], NV_UNIQUE_NAME, KM_SLEEP); in inb_dimmlist() 307 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in inb_create_nvl()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/ |
H A D | fac_prov_ipmi.c | 325 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ipmi_platform_message() 453 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ipmi_sensor_state() 559 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ipmi_sensor_reading() 673 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ipmi_indicator_mode() 801 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in bay_locate_mode() 1012 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in bay_indicator_mode() 1143 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in x4500_present_mode() 1303 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in chassis_service_mode() 1399 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in chassis_ident_mode() 1546 if (topo_mod_nvalloc(mod, &arg_nvl, NV_UNIQUE_NAME) < 0) { in make_sensor_node() [all …]
|
/illumos-gate/usr/src/lib/libppt/common/ |
H A D | libppt.c | 107 if ((err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0)) != 0) in dev_getinfo() 203 if ((err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0)) != 0) in ppt_list_assigned() 435 if ((err = nvlist_alloc(&nd.nd_nvl, NV_UNIQUE_NAME, 0)) != 0) in ppt_list()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/ |
H A D | topo_sensor.c | 88 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) { in topo_sensor_scalar_read() 256 if (topo_mod_nvalloc(mod, &reader_arg, NV_UNIQUE_NAME) != 0 || in topo_sensor_create_scalar_sensor()
|