/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_protocol.c | 49 nvlist_t *nvl; in fmd_protocol_authority() local 52 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0) in fmd_protocol_authority() 55 err |= nvlist_add_uint8(nvl, FM_VERSION, FM_FMRI_AUTH_VERSION); in fmd_protocol_authority() 61 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT, str); in fmd_protocol_authority() 64 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT_SN, str); in fmd_protocol_authority() 67 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_CHASSIS, str); in fmd_protocol_authority() 70 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_DOMAIN, str); in fmd_protocol_authority() 73 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_SERVER, str); in fmd_protocol_authority() 78 return (nvl); in fmd_protocol_authority() 88 nvlist_t *nvl; in fmd_protocol_fmri_module() local [all …]
|
H A D | fmd_fmri.c | 134 fmd_fmri_auth2str(nvlist_t *nvl) in fmd_fmri_auth2str() argument 140 for (nvp = nvlist_next_nvpair(nvl, NULL); in fmd_fmri_auth2str() 141 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fmd_fmri_auth2str() 153 for (nvp = nvlist_next_nvpair(nvl, NULL); in fmd_fmri_auth2str() 154 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fmd_fmri_auth2str() 254 nvl2scheme(nvlist_t *nvl) in nvl2scheme() argument 258 if (nvlist_lookup_string(nvl, FM_FMRI_SCHEME, &name) != 0) { in nvl2scheme() 267 fmd_fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) in fmd_fmri_nvl2str() argument 278 if ((sp = nvl2scheme(nvl)) == NULL) in fmd_fmri_nvl2str() 283 rv = sp->sch_ops.sop_nvl2str(nvl, buf, buflen); in fmd_fmri_nvl2str() [all …]
|
/illumos-gate/usr/src/common/nvpair/ |
H A D | fnvpair.c | 53 nvlist_t *nvl; in fnvlist_alloc() local 54 VERIFY0(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP)); in fnvlist_alloc() 55 return (nvl); in fnvlist_alloc() 59 fnvlist_free(nvlist_t *nvl) in fnvlist_free() argument 61 nvlist_free(nvl); in fnvlist_free() 65 fnvlist_size(nvlist_t *nvl) in fnvlist_size() argument 68 VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_NATIVE)); in fnvlist_size() 77 fnvlist_pack(nvlist_t *nvl, size_t *sizep) in fnvlist_pack() argument 80 VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE, in fnvlist_pack() 105 fnvlist_dup(nvlist_t *nvl) in fnvlist_dup() argument [all …]
|
H A D | nvpair.c | 131 static int nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, 182 nvlist_lookup_nv_alloc(nvlist_t *nvl) in nvlist_lookup_nv_alloc() argument 186 if (nvl == NULL || in nvlist_lookup_nv_alloc() 187 (priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv) == NULL) in nvlist_lookup_nv_alloc() 321 nvt_lookup_name_type(nvlist_t *nvl, const char *name, data_type_t type) in nvt_lookup_name_type() argument 323 nvpriv_t *priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv; in nvt_lookup_name_type() 353 nvt_lookup_name(nvlist_t *nvl, const char *name) in nvt_lookup_name() argument 355 return (nvt_lookup_name_type(nvl, name, DATA_TYPE_DONTCARE)); in nvt_lookup_name() 459 nvt_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp) in nvt_remove_nvpair() argument 461 nvpriv_t *priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv; in nvt_remove_nvpair() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_element.c | 41 elem_parse_device(const ses2_elem_status_impl_t *esip, nvlist_t *nvl) in elem_parse_device() argument 46 SES_NV_ADD(uint64, nverr, nvl, SES_DEV_PROP_SLOT_ADDR, in elem_parse_device() 48 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_REPORT, in elem_parse_device() 50 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_IDENT, in elem_parse_device() 52 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_RMV, dip->sdsi_rmv); in elem_parse_device() 53 SES_NV_ADD(boolean_value, nverr, nvl, SES_DEV_PROP_READY_TO_INSERT, in elem_parse_device() 55 SES_NV_ADD(boolean_value, nverr, nvl, SES_DEV_PROP_ENC_BYP_B, in elem_parse_device() 57 SES_NV_ADD(boolean_value, nverr, nvl, SES_DEV_PROP_ENC_BYP_A, in elem_parse_device() 59 SES_NV_ADD(boolean_value, nverr, nvl, SES_DEV_PROP_DO_NOT_REMOVE, in elem_parse_device() 61 SES_NV_ADD(boolean_value, nverr, nvl, SES_DEV_PROP_APP_BYP_A, in elem_parse_device() [all …]
|
H A D | ses2_enclosure.c | 35 enc_parse_sd(ses2_elem_status_impl_t *esip, nvlist_t *nvl) in enc_parse_sd() argument 42 SES_NV_ADD(uint64, nverr, nvl, SES_PROP_STATUS_CODE, in enc_parse_sd() 44 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_SWAP, in enc_parse_sd() 46 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_DISABLED, in enc_parse_sd() 48 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_PRDFAIL, in enc_parse_sd() 51 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_IDENT, sdp->sesi_ident); in enc_parse_sd() 52 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_WARN, in enc_parse_sd() 54 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_FAIL, in enc_parse_sd() 56 SES_NV_ADD(uint64, nverr, nvl, SES_EN_PROP_POWER_DELAY, in enc_parse_sd() 58 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_WARN_REQ, in enc_parse_sd() [all …]
|
/illumos-gate/usr/src/lib/libsff/common/ |
H A D | libsff.c | 603 sff_parse_id(uint8_t id, nvlist_t *nvl) in sff_parse_id() argument 615 return (nvlist_add_string(nvl, LIBSFF_KEY_IDENTIFIER, val)); in sff_parse_id() 620 nvlist_t *nvl, const char *key) in sff_add_unit_string() argument 626 return (nvlist_add_string(nvl, key, str)); in sff_add_unit_string() 630 sff_parse_connector(uint8_t con, nvlist_t *nvl) in sff_parse_connector() argument 641 return (nvlist_add_string(nvl, LIBSFF_KEY_CONNECTOR, val)); in sff_parse_connector() 651 nvlist_t *nvl) in sff_gather_bitfield() argument 680 return (nvlist_add_string_array(nvl, name, (char **)vals, count)); in sff_gather_bitfield() 684 sff_parse_compliance(const uint8_t *buf, nvlist_t *nvl) in sff_parse_compliance() argument 691 sff_8472_comp_10geth, nvl)) != 0) in sff_parse_compliance() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/libsff/ |
H A D | libsff_compliance.c | 32 lsc_print_array(nvlist_t *nvl, const char *key) in lsc_print_array() argument 38 if ((ret = nvlist_lookup_string_array(nvl, key, &vals, &count)) != 0) { in lsc_print_array() 54 nvlist_t *nvl; in main() local 71 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 76 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_10GBE); in main() 77 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_IB); in main() 78 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_ESCON); in main() 79 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_SONET); in main() 80 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_GBE); in main() 81 lsc_print_array(nvl, LIBSFF_KEY_COMPLIANCE_FC_LEN); in main() [all …]
|
H A D | libsff_wave.c | 40 nvlist_t *nvl; in main() local 51 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 56 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_WAVELENGTH, &val)) != in main() 62 nvlist_free(nvl); in main() 72 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 77 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_WAVELENGTH, &val)) != in main() 83 nvlist_free(nvl); in main() 90 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 95 if ((ret = nvlist_lookup_string(nvl, LIBSFF_KEY_WAVELENGTH, &val)) != in main() 101 nvlist_free(nvl); in main() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/lua_core/ |
H A D | nvlist_to_lua.c | 27 nvlist_t *nvl; variable 93 dump_nvlist(nvl, 4); in test() 96 10 * 1000 * 1000, 10 * 1024 * 1024, nvl, &outnvl); in test() 110 if (!nvlist_equal(nvl, real_outnvl)) { in test() 121 fnvlist_free(nvl); in test() 122 nvl = fnvlist_alloc(); in test() 137 nvl = fnvlist_alloc(); in run_tests() 139 fnvlist_add_boolean(nvl, key); in run_tests() 142 fnvlist_add_boolean_value(nvl, key, B_TRUE); in run_tests() 145 fnvlist_add_byte(nvl, key, 1); in run_tests() [all …]
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 131 nvlist_t *nvl = NULL; in ri_pack() local 149 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { in ri_pack() 154 if (nvlist_add_int32(nvl, RI_HDL_FLAGS, hdl->flags) != 0) { in ri_pack() 160 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) { in ri_pack() 167 nvlist_add_byte_array(nvl, RI_HDL_CPU_CAPS, (uchar_t *)buf, in ri_pack() 175 nvlist_add_byte_array(nvl, RI_HDL_MEM_CAPS, (uchar_t *)buf, in ri_pack() 181 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) { in ri_pack() 186 nvlist_free(nvl); in ri_pack() 194 nvlist_free(nvl); in ri_pack() 205 nvlist_t *nvl = NULL; in ap_list_pack() local [all …]
|
/illumos-gate/usr/src/common/mc/imc/ |
H A D | imc_dump.c | 34 nvlist_t *nvl; in imc_dump_sad() local 38 nvl = fnvlist_alloc(); in imc_dump_sad() 39 fnvlist_add_uint32(nvl, "isad_flags", sad->isad_flags); in imc_dump_sad() 40 fnvlist_add_uint32(nvl, "isad_valid", sad->isad_valid); in imc_dump_sad() 41 fnvlist_add_uint64(nvl, "isad_tolm", sad->isad_tolm); in imc_dump_sad() 42 fnvlist_add_uint64(nvl, "isad_tohm", sad->isad_tohm); in imc_dump_sad() 61 fnvlist_add_nvlist_array(nvl, "isad_rules", rules, sad->isad_nrules); in imc_dump_sad() 67 return (nvl); in imc_dump_sad() 79 fnvlist_add_nvlist_array(nvl, "isad_mcroute", routes, i); in imc_dump_sad() 84 return (nvl); in imc_dump_sad() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_reparse.c | 89 nvlist_t *nvl; in smb_reparse_svcadd() local 92 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcadd() 95 if ((rc = reparse_add(nvl, svctype, svcdata)) != 0) { in smb_reparse_svcadd() 96 smb_reparse_free(nvl); in smb_reparse_svcadd() 100 rc = smb_reparse_set(path, nvl); in smb_reparse_svcadd() 101 smb_reparse_free(nvl); in smb_reparse_svcadd() 114 nvlist_t *nvl; in smb_reparse_svcdel() local 117 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcdel() 120 if ((rc = reparse_remove(nvl, svctype)) != 0) { in smb_reparse_svcdel() 121 smb_reparse_free(nvl); in smb_reparse_svcdel() [all …]
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | nvlist.c | 342 nvlist_destroy(nvlist_t *nvl) in nvlist_destroy() argument 344 if (nvl != NULL) { in nvlist_destroy() 346 if (nvl->nv_asize > 0) in nvlist_destroy() 347 free(nvl->nv_data); in nvlist_destroy() 349 free(nvl); in nvlist_destroy() 372 nvlist_t *nvl; in nvlist_create() local 375 nvl = calloc(1, sizeof (*nvl)); in nvlist_create() 376 if (nvl == NULL) in nvlist_create() 377 return (nvl); in nvlist_create() 379 nvl->nv_header.nvh_encoding = NV_ENCODE_XDR; in nvlist_create() [all …]
|
/illumos-gate/usr/src/common/mc/zen_umc/ |
H A D | zen_umc_dump.c | 36 nvlist_t *nvl; in zen_umc_dump_dram_rule() local 38 nvl = fnvlist_alloc(); in zen_umc_dump_dram_rule() 39 fnvlist_add_uint32(nvl, "ddr_flags", rule->ddr_flags); in zen_umc_dump_dram_rule() 40 fnvlist_add_uint64(nvl, "ddr_base", rule->ddr_base); in zen_umc_dump_dram_rule() 41 fnvlist_add_uint64(nvl, "ddr_limit", rule->ddr_limit); in zen_umc_dump_dram_rule() 42 fnvlist_add_uint16(nvl, "ddr_dest_fabid", rule->ddr_dest_fabid); in zen_umc_dump_dram_rule() 43 fnvlist_add_uint8(nvl, "ddr_sock_ileave_bits", in zen_umc_dump_dram_rule() 45 fnvlist_add_uint8(nvl, "ddr_die_ileave_bits", in zen_umc_dump_dram_rule() 47 fnvlist_add_uint8(nvl, "ddr_addr_start", rule->ddr_addr_start); in zen_umc_dump_dram_rule() 48 fnvlist_add_uint8(nvl, "ddr_remap_ent", rule->ddr_remap_ent); in zen_umc_dump_dram_rule() [all …]
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 186 it_config_to_nv(it_config_t *cfg, nvlist_t **nvl) in it_config_to_nv() argument 192 if (!nvl) { in it_config_to_nv() 196 *nvl = NULL; in it_config_to_nv() 205 *nvl = nv; in it_config_to_nv() 246 *nvl = nv; in it_config_to_nv() 262 it_nv_to_config(nvlist_t *nvl, it_config_t **cfg) in it_nv_to_config() argument 281 if (!nvl) { in it_nv_to_config() 293 ret = nvlist_lookup_uint32(nvl, "cfgVersion", &intval); in it_nv_to_config() 301 ret = nvlist_lookup_nvlist(nvl, "targetList", &listval); in it_nv_to_config() 308 ret = nvlist_lookup_nvlist(nvl, "tpgList", &listval); in it_nv_to_config() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses_facility.c | 149 nvlist_t *nvl; in ses_indicator_mode() local 191 nvl = NULL; in ses_indicator_mode() 192 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_indicator_mode() 193 nvlist_add_boolean_value(nvl, propname, in ses_indicator_mode() 195 nvlist_free(nvl); in ses_indicator_mode() 200 if (ses_node_ctl(np, SES_CTL_OP_SETPROP, nvl) != 0) { in ses_indicator_mode() 203 nvlist_free(nvl); in ses_indicator_mode() 208 nvlist_free(nvl); in ses_indicator_mode() 226 nvl = NULL; in ses_indicator_mode() 227 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0 || in ses_indicator_mode() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_history.c | 210 spa_history_log_notify(spa_t *spa, nvlist_t *nvl) in spa_history_log_notify() argument 216 if (nvlist_lookup_string(nvl, ZPOOL_HIST_CMD, &string) == 0) in spa_history_log_notify() 219 if (nvlist_lookup_string(nvl, ZPOOL_HIST_INT_NAME, &string) == 0) in spa_history_log_notify() 222 if (nvlist_lookup_string(nvl, ZPOOL_HIST_ZONE, &string) == 0) in spa_history_log_notify() 225 if (nvlist_lookup_string(nvl, ZPOOL_HIST_HOST, &string) == 0) in spa_history_log_notify() 228 if (nvlist_lookup_string(nvl, ZPOOL_HIST_DSNAME, &string) == 0) in spa_history_log_notify() 231 if (nvlist_lookup_string(nvl, ZPOOL_HIST_INT_STR, &string) == 0) in spa_history_log_notify() 234 if (nvlist_lookup_string(nvl, ZPOOL_HIST_IOCTL, &string) == 0) in spa_history_log_notify() 237 if (nvlist_lookup_string(nvl, ZPOOL_HIST_INT_NAME, &string) == 0) in spa_history_log_notify() 240 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_DSID, &uint64) == 0) in spa_history_log_notify() [all …]
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | process.c | 109 if (info->nvl == NULL) in ct_pr_event_get_pid() 111 return (nvlist_lookup_uint32(info->nvl, CTPE_PID, (uint_t *)pid)); in ct_pr_event_get_pid() 122 if (info->nvl == NULL) in ct_pr_event_get_ppid() 124 return (nvlist_lookup_uint32(info->nvl, CTPE_PPID, (uint_t *)ppid)); in ct_pr_event_get_ppid() 135 if (info->nvl == NULL) in ct_pr_event_get_signal() 137 return (nvlist_lookup_uint32(info->nvl, CTPE_SIGNAL, (uint_t *)signal)); in ct_pr_event_get_signal() 148 if (info->nvl == NULL) in ct_pr_event_get_sender() 150 return (nvlist_lookup_uint32(info->nvl, CTPE_SENDER, (uint_t *)sender)); in ct_pr_event_get_sender() 161 if (info->nvl == NULL) in ct_pr_event_get_senderct() 163 return (nvlist_lookup_uint32(info->nvl, CTPE_SENDCT, (uint_t *)sendct)); in ct_pr_event_get_senderct() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/pppt/ |
H A D | alua_ic_if.c | 69 rc = nvlist_add_##type(nvl, #field, structure->field); \ 77 rc = nvlist_add_##type##_array(nvl, #field, \ 89 rc = nvlist_add_##type##_array(nvl, #field, \ 97 rc = stmf_ic_scsi_devid_desc_marshal(nvl, #field, \ 105 rc = stmf_ic_remote_port_marshal(nvl, #field, \ 126 rc = nvlist_lookup_##type(nvl, #field, \ 148 rc = nvlist_lookup_##type(nvl, #field, &tmp); \ 166 rc = nvlist_lookup_boolean_value(nvl, #field, &tmp); \ 259 static int stmf_ic_reg_port_msg_marshal(nvlist_t *nvl, void *msg); 260 static int stmf_ic_dereg_port_msg_marshal(nvlist_t *nvl, void *msg); [all …]
|
/illumos-gate/usr/src/compat/bhyve/sys/ |
H A D | nv.h | 26 nvlist_next(const nvlist_t *nvl, int *type, void **cookie) in nvlist_next() argument 30 nvp = nvlist_next_nvpair((nvlist_t *)nvl, nvp); in nvlist_next() 42 nvlist_t *nvl; in nvlist_create() local 50 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) in nvlist_create() 52 return (nvl); in nvlist_create() 56 nvlist_exists_nvlist(const nvlist_t *nvl, const char *name) in nvlist_exists_nvlist() argument 60 return (nvlist_lookup_nvlist((nvlist_t *)nvl, name, &snvl) == 0); in nvlist_exists_nvlist() 64 nvlist_get_nvlist(const nvlist_t *nvl, const char *name) in nvlist_get_nvlist() argument 68 if (nvlist_lookup_nvlist((nvlist_t *)nvl, name, &snvl) == 0) in nvlist_get_nvlist() 74 nvlist_exists_string(const nvlist_t *nvl, const char *name) in nvlist_exists_string() argument [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_xattr.c | 40 xoptattr_t *xoap, nvlist_t *nvl); 49 nvlist_t *nvl = NULL; in fop__getxvattr() local 58 error = fgetattr(fd, XATTR_VIEW_READWRITE, &nvl); in fop__getxvattr() 60 error = getxva_parse_nvl(xvap, xoap, nvl); in fop__getxvattr() 61 nvlist_free(nvl); in fop__getxvattr() 62 nvl = NULL; in fop__getxvattr() 68 if (fgetattr(fd, XATTR_VIEW_READONLY, &nvl) == 0) { in fop__getxvattr() 69 (void) getxva_parse_nvl(xvap, xoap, nvl); in fop__getxvattr() 70 nvlist_free(nvl); in fop__getxvattr() 78 xoptattr_t *xoap, nvlist_t *nvl) in getxva_parse_nvl() argument [all …]
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | ioctl.c | 75 nvl2py(nvlist_t *nvl) in nvl2py() argument 82 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp; in nvl2py() 83 nvp = nvlist_next_nvpair(nvl, nvp)) { in nvl2py() 132 nvlist_t *nvl; in dict2nvl() local 142 err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0); in dict2nvl() 154 nvlist_free(nvl); in dict2nvl() 160 err = nvlist_add_nvlist(nvl, keystr, valnvl); in dict2nvl() 163 err = nvlist_add_boolean(nvl, keystr); in dict2nvl() 175 err = nvlist_add_string(nvl, keystr, valstr); in dict2nvl() 178 err = nvlist_add_uint64(nvl, keystr, valint); in dict2nvl() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/ |
H A D | nfsref.c | 99 nvlist_t *nvl = NULL; in addref() local 104 nvl = reparse_init(); in addref() 105 if (nvl == NULL) in addref() 115 reparse_free(nvl); in addref() 124 err = reparse_parse(buf, nvl); in addref() 126 reparse_free(nvl); in addref() 147 err = reparse_add(nvl, svc_type, location); in addref() 149 reparse_free(nvl); in addref() 154 err = reparse_unparse(nvl, &text); in addref() 155 reparse_free(nvl); in addref() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | config.c | 54 nvlist_t *nvl, *new_nvl; in _lookup_config_node() local 60 nvl = parent; in _lookup_config_node() 64 nvl = NULL; in _lookup_config_node() 67 if (nvlist_exists_nvlist(nvl, name)) in _lookup_config_node() 77 nvl = __DECONST(nvlist_t *, in _lookup_config_node() 78 nvlist_get_nvlist(nvl, name)); in _lookup_config_node() 79 else if (nvlist_exists(nvl, name)) { in _lookup_config_node() 86 nvl = NULL; in _lookup_config_node() 97 nvlist_move_nvlist(nvl, name, new_nvl); in _lookup_config_node() 99 if (nvlist_add_nvlist(nvl, name, new_nvl) != 0) in _lookup_config_node() [all …]
|