/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_sysevent.c | 104 nvlist_t *attr, *nvl; in sysev_legacy() local 120 (void) nvlist_merge(nvl, attr, 0); in sysev_legacy() 128 (void) nvlist_add_string(nvl, FM_CLASS, fullclass); in sysev_legacy() 137 fmd_xprt_post(sysev_hdl, sysev_xprt, nvl, hrt); in sysev_legacy() 153 nvlist_t *nvl; in sysev_recv() local 186 fmd_xprt_post(sysev_hdl, xp, nvl, hrt); in sysev_recv() 282 nvlist_t *nvl; in sysev_replay() local 344 ed.ed_size, &nvl, &fmd.d_nva)) != 0) { in sysev_replay() 382 (void) nvlist_remove_all(nvl, FMD_EVN_TOD); in sysev_replay() 383 (void) nvlist_add_uint64_array(nvl, in sysev_replay() [all …]
|
H A D | fmd_scheme.c | 46 fmd_scheme_fmd_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) in fmd_scheme_fmd_nvl2str() argument 50 if (nvlist_lookup_string(nvl, FM_FMRI_FMD_NAME, &name) != 0) in fmd_scheme_fmd_nvl2str() 58 fmd_scheme_fmd_present(nvlist_t *nvl) in fmd_scheme_fmd_present() argument 64 if (nvlist_lookup_string(nvl, FM_FMRI_FMD_NAME, &name) != 0 || in fmd_scheme_fmd_present() 65 nvlist_lookup_string(nvl, FM_FMRI_FMD_VERSION, &version) != 0) in fmd_scheme_fmd_present() 81 fmd_scheme_fmd_replaced(nvlist_t *nvl) in fmd_scheme_fmd_replaced() argument 87 if (nvlist_lookup_string(nvl, FM_FMRI_FMD_NAME, &name) != 0 || in fmd_scheme_fmd_replaced() 104 fmd_scheme_fmd_service_state(nvlist_t *nvl) in fmd_scheme_fmd_service_state() argument 110 if (nvlist_lookup_string(nvl, FM_FMRI_FMD_NAME, &name) != 0) in fmd_scheme_fmd_service_state() 125 fmd_scheme_fmd_unusable(nvlist_t *nvl) in fmd_scheme_fmd_unusable() argument [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | sw.c | 85 sw_get_optl_string(nvlist_t *nvl, char *name, char **dest) in sw_get_optl_string() argument 87 if (nvlist_lookup_string(nvl, name, dest) == 0) { in sw_get_optl_string() 96 sw_get_optl_int64(nvlist_t *nvl, char *name, int64_t *dest) in sw_get_optl_int64() argument 98 if (nvlist_lookup_int64(nvl, name, dest) == 0) { in sw_get_optl_int64() 107 sw_get_optl_nvlist(nvlist_t *nvl, char *name, nvlist_t **dest) in sw_get_optl_nvlist() argument 109 if (nvlist_lookup_nvlist(nvl, name, dest) == 0) { in sw_get_optl_nvlist() 118 sw_add_optl_string(nvlist_t *nvl, char *name, char *val) in sw_add_optl_string() argument 121 return (nvlist_add_string(nvl, name, val) != 0); in sw_add_optl_string() 329 err = nvlist_lookup_string(nvl, name, valp); in lookup_string() 358 nvlist_t *nvl, nvlist_t **out) in sw_fmri_nvl2str() argument [all …]
|
/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm.c | 299 nvlist_t *nvl, rcm_info_t **infop) in rcm_request_capacity_change() argument 349 if ((nvl == NULL) || (flag != 0)) { in rcm_notify_event() 676 nvlist_t *nvl; in rcm_info_properties() local 692 return (nvl); in rcm_info_properties() 1332 nvlist_t *nvl = NULL; in rcm_generate_nvlist() local 1443 nvlist_free(nvl); in rcm_generate_nvlist() 1449 nvlist_free(nvl); in rcm_generate_nvlist() 1463 nvlist_t *nvl; in rcm_daemon_is_alive() local 1476 nvlist_free(nvl); in rcm_daemon_is_alive() 1481 nvlist_free(nvl); in rcm_daemon_is_alive() [all …]
|
H A D | librcm_event.c | 52 lookup_seq_num(nvlist_t *nvl, uint64_t *seq_num) in lookup_seq_num() argument 56 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in lookup_seq_num() 248 nvlist_t *nvl; in door_service() local 277 nvl = (nvlist_t *)(void *)args; in door_service() 280 if (errno = nvlist_size(nvl, &nvl_size, NV_ENCODE_NATIVE)) { in door_service() 281 nvlist_free(nvl); in door_service() 295 (void) nvlist_add_uint64(nvl, RCM_SEQ_NUM, seq_num); in door_service() 299 if (errno = nvlist_pack(nvl, &args, &alen, NV_ENCODE_NATIVE, 0)) { in door_service() 300 nvlist_free(nvl); in door_service() 304 nvlist_free(nvl); in door_service()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/dos_ro/ |
H A D | dos_ro.c | 34 nvlist_t *nvl = NULL; in dosattr_set_ro() local 37 err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0); in dosattr_set_ro() 41 (void) nvlist_add_boolean_value(nvl, A_READONLY, 1); in dosattr_set_ro() 44 err = fsetattr(fildes, XATTR_VIEW_READWRITE, nvl); in dosattr_set_ro() 46 err = setattrat(fildes, XATTR_VIEW_READWRITE, fname, nvl); in dosattr_set_ro() 57 nvlist_free(nvl); in dosattr_set_ro()
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_enclosure_ctl.c | 40 enc_do_ucode(ses_plugin_t *sp, ses_node_t *np, nvlist_t *nvl) in enc_do_ucode() argument 54 if (nvlist_lookup_byte_array(nvl, SES_CTL_PROP_UCODE_DATA, in enc_do_ucode() 59 if (nvlist_lookup_uint64(nvl, SES_CTL_PROP_UCODE_MODE, in enc_do_ucode() 79 (void) nvlist_lookup_uint64(nvl, SES_CTL_PROP_UCODE_BUFID, &bufid); in enc_do_ucode() 113 (void) nvlist_remove_all(nvl, SES_CTL_PROP_UCODE_DATA); in enc_do_ucode() 114 (void) nvlist_remove_all(nvl, SES_CTL_PROP_UCODE_MODE); in enc_do_ucode() 115 (void) nvlist_remove_all(nvl, SES_CTL_PROP_UCODE_BUFID); in enc_do_ucode() 116 (void) nvlist_remove_all(nvl, SES_CTL_PROP_UCODE_DATA_LEN); in enc_do_ucode() 307 nvlist_t *nvl) in ses2_enclosure_ctl() argument 310 return (ses2_setprop(sp, np, enc_props, nvl)); in ses2_enclosure_ctl() [all …]
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | dimm_topo.c | 195 inhm_dimmlist(uint32_t node, nvlist_t *nvl) in inhm_dimmlist() argument 210 (void) nvlist_add_string(nvl, "memory-policy", in inhm_dimmlist() 212 (void) nvlist_add_string(nvl, "memory-ecc", in inhm_dimmlist() 242 (void) nvlist_add_nvlist_array(nvl, MCINTEL_NVLIST_MC, newchannel, in inhm_dimmlist() 259 nvlist_t *nvl; in inhm_create_nvl() local 261 (void) nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in inhm_create_nvl() 262 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_VERSTR, in inhm_create_nvl() 265 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NMEM, 1); in inhm_create_nvl() 266 (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NRANKS, 4); in inhm_create_nvl() 267 inhm_dimmlist(chip, nvl); in inhm_create_nvl() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 1017 nvlist_t *nvl = NULL; in i_devfs_minor_perm_nvlist() local 1027 nvlist_free(nvl); in i_devfs_minor_perm_nvlist() 1032 return (nvl); in i_devfs_minor_perm_nvlist() 1045 nvlist_t *nvl; in devfs_load_minor_perm() local 1048 if (nvl == NULL) in devfs_load_minor_perm() 1052 nvlist_free(nvl); in devfs_load_minor_perm() 1057 nvlist_free(nvl); in devfs_load_minor_perm() 1073 nvlist_t *nvl; in i_devfs_update_minor_perm() local 1079 if (nvl == NULL) in i_devfs_update_minor_perm() 1084 nvlist_free(nvl); in i_devfs_update_minor_perm() [all …]
|
/illumos-gate/usr/src/lib/varpd/files/common/ |
H A D | libvarpd_files.c | 120 for (pair = nvlist_next_nvpair(nvl, NULL); pair != NULL; in varpd_files_normalize_nvlist() 121 pair = nvlist_next_nvpair(nvl, pair)) { in varpd_files_normalize_nvlist() 164 nvlist_t *nvl; in varpd_files_start() local 189 ret = nvlist_parse_json(maddr, st.st_size, &nvl, in varpd_files_start() 192 ret = varpd_files_normalize_nvlist(vaf, nvl); in varpd_files_start() 193 nvlist_free(nvl); in varpd_files_start() 230 nvlist_t *nvl; in varpd_files_lookup() local 270 if (nvlist_lookup_string(nvl, "dhcp-proxy", &mac) != 0) { in varpd_files_lookup() 295 if (nvlist_lookup_int32(nvl, "port", &port) != 0) { in varpd_files_lookup() 306 if (nvlist_lookup_string(nvl, "ip", &ipstr) != 0) { in varpd_files_lookup() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 867 nvlist_t *nvl = NULL; in cfga_change_state() local 892 &hdl, &nvl)) != CFGA_IB_OK) { in cfga_change_state() 1022 ib_cleanup_after_devctl_cmd(hdl, nvl); in cfga_change_state() 1060 nvlist_t *nvl; in cfga_private_func() local 1083 &nvl)) != CFGA_IB_OK) { in cfga_private_func() 1159 nvlist_free(nvl); in cfga_private_func() 1264 nvlist_free(nvl); in cfga_private_func() 1652 nvlist_t *nvl = NULL; in cfga_list_ext() local 1844 nvp = nvlist_next_nvpair(nvl, in cfga_list_ext() 1870 nvlist_free(nvl); in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/tools/cpcgen/ |
H A D | cpcgen.c | 534 nvlist_t *nvl; in cpcgen_read_datafile() local 570 return (nvl); in cpcgen_read_datafile() 956 (void) nvlist_lookup_string(nvl, "Errata", &errata); in cpcgen_manual_intel_event() 1052 nvlist_lookup_string(nvl, "UMask", &umask) != 0 || in cpcgen_cfile_intel_event() 1387 nvlist_lookup_string(nvl, "UMask", &umask) != 0 || in cpcgen_skip_intel_entry() 1497 if (nvlist_lookup_string(nvl, "name", &name) != 0) { in cpcgen_manual_amd_event() 1514 (void) nvlist_lookup_nvlist(nvl, "units", &units); in cpcgen_manual_amd_event() 1731 if (nvlist_lookup_string(nvl, "name", &name) != 0) { in cpcgen_cfile_amd_event() 1737 if (nvlist_lookup_string(nvl, "code", &code) != 0) { in cpcgen_cfile_amd_event() 1866 nvlist_t *nvl; in cpcgen_gen() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp.c | 213 nvlist_t *nvl; in zcp_table_to_nvlist() local 234 VERIFY0(nvlist_alloc(&nvl, 0, KM_SLEEP)); in zcp_table_to_nvlist() 285 fnvlist_free(nvl); in zcp_table_to_nvlist() 295 fnvlist_free(nvl); in zcp_table_to_nvlist() 307 fnvlist_free(nvl); in zcp_table_to_nvlist() 316 fnvlist_free(nvl); in zcp_table_to_nvlist() 333 nvl->nvl_nvflag |= NV_UNIQUE_NAME; in zcp_table_to_nvlist() 335 return (nvl); in zcp_table_to_nvlist() 380 fnvlist_add_boolean(nvl, key); in zcp_lua_to_nvlist_impl() 383 fnvlist_add_boolean_value(nvl, key, in zcp_lua_to_nvlist_impl() [all …]
|
H A D | dsl_crypt.c | 2082 nvlist_t *nvl, dmu_tx_t *tx) in dsl_crypto_recv_raw_objset_sync() argument 2104 blksz = fnvlist_lookup_uint64(nvl, "mdn_blksz"); in dsl_crypto_recv_raw_objset_sync() 2265 keyformat = fnvlist_lookup_uint64(nvl, in dsl_crypto_recv_raw_key_sync() 2267 iters = fnvlist_lookup_uint64(nvl, in dsl_crypto_recv_raw_key_sync() 2269 salt = fnvlist_lookup_uint64(nvl, in dsl_crypto_recv_raw_key_sync() 2393 dcrka.dcrka_nvl = nvl; in dsl_crypto_recv_raw() 2408 nvlist_t *nvl = NULL; in dsl_crypto_populate_key_nvlist() local 2426 ret = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); in dsl_crypto_populate_key_nvlist() 2525 VERIFY0(nvlist_add_uint8_array(nvl, "portable_mac", in dsl_crypto_populate_key_nvlist() 2540 *nvl_out = nvl; in dsl_crypto_populate_key_nvlist() [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_profile.c | 115 nvlist_t *nvl; in apply_glob_pattern() local 324 if (nvl == NULL) in prof_make_symlinks() 348 if (nvl == NULL) in prof_make_maps() 424 nvlist_t *nvl; in prof_name_matched() local 633 if (nvl == NULL) in prof_make_names() 1052 nvlist_t *nvl; in devname_profile_update() local 1058 nvl = NULL; in devname_profile_update() 1061 ASSERT(nvl); in devname_profile_update() 1068 nvlist_free(nvl); in devname_profile_update() 1082 nvlist_free(nvl); in devname_profile_update() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_intel.c | 214 nvp = nvlist_next_nvpair(nvl[i], nvp)) { in mc_add_dimms() 275 nvp = nvlist_next_nvpair(nvl[i], nvp)) { in mc_add_dimms() 347 nvp = nvlist_next_nvpair(nvl, nvp)) { in mc_add_channel() 360 const char *name, nvlist_t *auth, nvlist_t *nvl) in mc_nb_create() argument 442 nvp = nvlist_next_nvpair(nvl, nvp)) { in mc_nb_create() 885 nvlist_t *auth, nvlist_t *nvl) in mc_nb_create_v1() argument 917 nvlist_t *nvl; in mc_node_create() local 933 (void) nvlist_unpack(buf, mcs.mcs_size, &nvl, 0); in mc_node_create() 938 nvlist_free(nvl); in mc_node_create() 943 nvlist_free(nvl); in mc_node_create() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/libsff/ |
H A D | libsff_8472.c | 40 nvlist_t *nvl; in main() local 44 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 49 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_COMPLIANCE_8472, in main() 57 nvlist_free(nvl); in main()
|
H A D | libsff_ident.c | 40 nvlist_t *nvl; in main() local 44 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 49 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_IDENTIFIER, in main() 57 nvlist_free(nvl); in main()
|
H A D | libsff_8636_extspec.c | 41 nvlist_t *nvl; in main() local 45 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 50 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_EXT_SPEC, in main() 58 nvlist_free(nvl); in main()
|
H A D | libsff_8636_temp.c | 41 nvlist_t *nvl; in main() local 45 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 50 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_MAX_CASE_TEMP, in main() 57 nvlist_free(nvl); in main()
|
H A D | libsff_8636_diag.c | 38 nvlist_t *nvl; in main() local 44 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 49 if ((ret = nvlist_lookup_string_array(nvl, LIBSFF_KEY_DIAG_MONITOR, in main() 59 nvlist_free(nvl); in main()
|
/illumos-gate/usr/src/lib/libreparse/common/ |
H A D | fs_reparse_lib.c | 99 reparse_unparse(nvlist_t *nvl, char **stringp) in reparse_unparse() argument 105 if (nvl == NULL || stringp == NULL || in reparse_unparse() 106 ((curr = nvlist_next_nvpair(nvl, NULL)) == NULL)) in reparse_unparse() 129 curr = nvlist_next_nvpair(nvl, curr); in reparse_unparse() 210 reparse_add(nvlist_t *nvl, const char *svc_type, const char *svc_data) in reparse_add() argument 217 if ((nvl == NULL) || (svc_type == NULL) || (svc_data == NULL)) in reparse_add() 235 err = nvlist_add_string(nvl, svc_type, buf); in reparse_add() 248 reparse_remove(nvlist_t *nvl, const char *svc_type) in reparse_remove() argument 250 if ((nvl == NULL) || (svc_type == NULL)) in reparse_remove() 253 return (nvlist_remove_all(nvl, svc_type)); in reparse_remove()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fire.c | 123 fab_fire_to_data(fmd_hdl_t *hdl, nvlist_t *nvl, fab_data_t *data) in fab_fire_to_data() argument 125 data->nvl = nvl; in fab_fire_to_data() 379 fab_xlate_fire_erpts(fmd_hdl_t *hdl, nvlist_t *nvl, const char *class) in fab_xlate_fire_erpts() argument 385 fab_fire_to_data(hdl, nvl, &data); in fab_xlate_fire_erpts() 387 if (fmd_nvl_class_match(hdl, nvl, "ereport.io.fire.pec.*")) { in fab_xlate_fire_erpts() 388 if (! fab_xlate_fire_ce(hdl, &data, nvl, class) && in fab_xlate_fire_erpts() 389 ! fab_xlate_fire_ue(hdl, &data, nvl, class)) in fab_xlate_fire_erpts() 390 (void) fab_xlate_fire_oe(hdl, &data, nvl, class); in fab_xlate_fire_erpts() 391 } else if (fmd_nvl_class_match(hdl, nvl, "ereport.io.fire.dmc.*") || in fab_xlate_fire_erpts() 392 fmd_nvl_class_match(hdl, nvl, "ereport.io.n2.dmu.*")) in fab_xlate_fire_erpts() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_durable.c | 837 of->dh_nvlist = nvl; in smb2_dh_import_handle() 838 nvl = NULL; in smb2_dh_import_handle() 863 if (nvl != NULL) in smb2_dh_import_handle() 864 nvlist_free(nvl); in smb2_dh_import_handle() 1020 struct nvlist *nvl; in smb2_dh_close_persistent() local 1028 nvl = of->dh_nvlist; in smb2_dh_close_persistent() 1032 if (nvl != NULL) in smb2_dh_close_persistent() 1033 nvlist_free(nvl); in smb2_dh_close_persistent() 1677 struct nvlist *nvl; in smb2_dh_cleanup() local 1690 if (nvl != NULL) in smb2_dh_cleanup() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-transport/ |
H A D | disk_transport.c | 79 nvlist_t *nvl; in dt_post_ereport() local 86 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) == 0) { in dt_post_ereport() 87 e |= nvlist_add_string(nvl, FM_CLASS, fullclass); in dt_post_ereport() 88 e |= nvlist_add_uint8(nvl, FM_VERSION, FM_EREPORT_VERSION); in dt_post_ereport() 89 e |= nvlist_add_uint64(nvl, FM_EREPORT_ENA, ena); in dt_post_ereport() 90 e |= nvlist_add_nvlist(nvl, FM_EREPORT_DETECTOR, detector); in dt_post_ereport() 91 e |= nvlist_merge(nvl, payload, 0); in dt_post_ereport() 94 fmd_xprt_post(hdl, xprt, nvl, 0); in dt_post_ereport() 96 nvlist_free(nvl); in dt_post_ereport()
|