/illumos-gate/usr/src/uts/common/io/ |
H A D | cpc.c | 570 nvpair_t *nvp = NULL; in kcpc_copyin_set() local 606 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in kcpc_copyin_set() 607 switch (nvpair_type(nvp)) { in kcpc_copyin_set() 616 if (strcmp(nvpair_name(nvp), "reqs") != 0 || in kcpc_copyin_set() 617 nvpair_value_nvlist_array(nvp, &reqlist, in kcpc_copyin_set() 670 nvp = NULL; in kcpc_copyin_set() 672 while ((nvp = nvlist_next_nvpair(reqlist[i], nvp)) != NULL) { in kcpc_copyin_set() 673 name = nvpair_name(nvp); in kcpc_copyin_set() 674 switch (nvpair_type(nvp)) { in kcpc_copyin_set() 768 nvpair_t *nvp = NULL; in kcpc_nvlist_npairs() local [all …]
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 82 struct nlm_vhold *nvp; member 110 struct nlm_vhold *nvp, 234 struct nlm_vhold *nvp; in nlm_fh_to_vhold() local 249 return (nvp); in nlm_fh_to_vhold() 482 struct nlm_vhold *nvp = NULL; in nlm_do_lock() local 544 if (nvp == NULL) { in nlm_do_lock() 685 nlm_vhold_release(host, nvp); in nlm_do_lock() 697 struct nlm_vhold *nvp, in nlm_block() argument 743 cb_data.nvp = nvp; in nlm_block() 879 if (nvp == NULL) { in nlm_do_cancel() [all …]
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | nvlist.c | 797 nvp_header_t *nvp; in nvlist_remove() local 817 while (nvp->encoded_size != 0 && nvp->decoded_size != 0) { in nvlist_remove() 881 while (nvp->encoded_size != 0 && nvp->decoded_size != 0) { in nvlist_next() 882 nvp = (nvp_header_t *)((uint8_t *)nvp + nvp->encoded_size); in nvlist_next() 884 return ((uint8_t *)nvp + sizeof (*nvp)); in nvlist_next() 908 while (nvp->encoded_size != 0 && nvp->decoded_size != 0) { in nvlist_find() 909 nvp_name = (nv_string_t *)((uint8_t *)nvp + sizeof (*nvp)); in nvlist_find() 966 nvp = (nvp_header_t *)((uint8_t *)nvp + nvp->encoded_size); in nvlist_find() 1567 nvp_name = (nv_string_t *)((uintptr_t)nvp + sizeof (*nvp)); in nvpair_print() 1687 while (nvp->encoded_size != 0 && nvp->decoded_size != 0) { in nvlist_print() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_reparse.c | 151 nvpair_t *nvp; in smb_reparse_svcget() local 159 nvp = nvlist_next_nvpair(nvl, NULL); in smb_reparse_svcget() 161 while (nvp != NULL) { in smb_reparse_svcget() 162 stype = nvpair_name(nvp); in smb_reparse_svcget() 165 if ((rc = nvpair_value_string(nvp, &sdata)) != 0) in smb_reparse_svcget() 176 nvp = nvlist_next_nvpair(nvl, nvp); in smb_reparse_svcget()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1313 nvp += 4 * 2; in nvpair_name() 1336 nvp += 4 * 2; in nvpair_type() 1340 nvp += 4; in nvpair_type() 1343 nvp = nvp + ((name_len + 3) & ~3); /* align */ in nvpair_type() 1362 nvp += 4; in nvpair_value() 1365 nvp = nvp + ((name_len + 3) & ~3); /* align */ in nvpair_value() 1369 nvp += 4; in nvpair_value() 1377 nvp += 4; in nvpair_value() 1385 nvp += 4; in nvpair_value() 1590 char *nvp; in check_pool_label() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_idm.c | 576 nvpair_t *nvp; in iser_process_request_nvlist() local 582 nvp = nvlist_next_nvpair(request_nvl, NULL); in iser_process_request_nvlist() 583 while (nvp != NULL) { in iser_process_request_nvlist() 584 next_nvp = nvlist_next_nvpair(request_nvl, nvp); in iser_process_request_nvlist() 586 nvp_name = nvpair_name(nvp); in iser_process_request_nvlist() 601 nvp = next_nvp; in iser_process_request_nvlist() 637 nvrc = nvpair_value_uint64(nvp, &num_val); in iser_handle_key() 658 kvrc = iser_handle_numerical(nvp, num_val, ikvx, in iser_handle_key() 666 kvrc = iser_handle_numerical(nvp, num_val, ikvx, in iser_handle_key() 723 nvrc = nvlist_add_nvpair(negotiated_nvl, nvp); in iser_handle_boolean() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | events.c | 413 nvpair_t *nvp; in print_nvlist() local 415 nvp = nvlist_next_nvpair(list, NULL); in print_nvlist() 416 while (nvp != NULL) { in print_nvlist() 425 attrname = nvpair_name(nvp); in print_nvlist() 426 switch (nvpair_type(nvp)) { in print_nvlist() 428 (void) nvpair_value_string(nvp, &str); in print_nvlist() 433 (void) nvpair_value_string_array(nvp, &str_array, &cnt); in print_nvlist() 441 (void) nvpair_value_uint32(nvp, &ui32); in print_nvlist() 446 (void) nvpair_value_uint64(nvp, &ui64); in print_nvlist() 465 nvp = nvlist_next_nvpair(list, nvp); in print_nvlist()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 66 nvpair_t *nvp = NULL; \ 67 while ((nvp = nvlist_next_nvpair(nvlp, nvp)) != NULL) { \ 68 if (nvpair_type(nvp) != type) \ 70 if (strcmp(nvpair_name(nvp), n) == 0) \ 71 return (nvpair_value_##suffix(nvp, rpp)); \ 137 nvpair_t *nvp = NULL; in find_disk_monitor_private_pgroup() local 154 while ((nvp = nvlist_next_nvpair(list_of_lists, nvp)) != NULL) { in find_disk_monitor_private_pgroup() 156 if (nvpair_type(nvp) != DATA_TYPE_NVLIST || in find_disk_monitor_private_pgroup() 158 nvpair_value_nvlist(nvp, &nvlp) != 0) in find_disk_monitor_private_pgroup() 467 nvpair_t *nvp = NULL; in topo_add_bay() local [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ftok.c | 45 nvlist_t *nvp; in ftok() local 57 path, &nvp)) == 0) { in ftok() 60 if ((error = libc_nvlist_lookup_uint64(nvp, in ftok() 63 libc_nvlist_free(nvp); in ftok()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 736 nvpair_t *nvp; in fab_pr() local 739 nvp != NULL; in fab_pr() 740 nvp = nvlist_next_nvpair(nvl, nvp)) { in fab_pr() 742 data_type_t type = nvpair_type(nvp); in fab_pr() 743 const char *name = nvpair_name(nvp); in fab_pr() 775 (void) nvpair_value_byte(nvp, &i8); in fab_pr() 785 (void) nvpair_value_uint8(nvp, &i8); in fab_pr() 795 (void) nvpair_value_uint16(nvp, &i16); in fab_pr() 805 (void) nvpair_value_uint32(nvp, &i32); in fab_pr() 816 (void) nvpair_value_uint64(nvp, &i64); in fab_pr() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_enclosure_ctl.c | 123 nvpair_t *nvp) in enc_ctl_common() argument 136 name = nvpair_name(nvp); in enc_ctl_common() 137 (void) nvpair_value_boolean_value(nvp, &boolval); in enc_ctl_common() 138 (void) nvpair_value_uint64(nvp, &intval); in enc_ctl_common() 161 nvpair_t *nvp) in enc_ctl_string() argument 171 ASSERT(strcmp(nvpair_name(nvp), SES_EN_PROP_STRING) == 0); in enc_ctl_string() 175 (void) nvpair_value_byte_array(nvp, (uint8_t **)&data, &nvlen); in enc_ctl_string() 200 nvpair_t *nvp) in enc_ctl_nick() argument 209 ASSERT(strcmp(nvpair_name(nvp), SES_EN_PROP_NICK) == 0); in enc_ctl_nick() 212 (void) nvpair_value_string(nvp, (char **)&nick); in enc_ctl_nick()
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_login.c | 1942 nvpair_t *nvp; in login_sm_process_nvlist() local 1980 while (nvp != NULL) { in login_sm_process_nvlist() 1982 nvp_name = nvpair_name(nvp); in login_sm_process_nvlist() 2010 nvp = next_nvp; in login_sm_process_nvlist() 2181 ict, nvp, ikvx); in iscsit_handle_key() 2185 ict, nvp, ikvx); in iscsit_handle_key() 2278 kvrc = handler(ict, nvp, ikvx); in iscsit_handle_security_key() 2332 nvrc = nvpair_value_uint64(nvp, &num_val); in iscsit_handle_operational_key() 2350 kvrc = iscsit_handle_digest(ict, nvp, ikvx); in iscsit_handle_operational_key() 2550 nvp); in iscsit_handle_boolean() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_lookup.c | 73 vnode_t *nvp; /* next component vp */ in fake_lookup() local 88 nvp = NULL; in fake_lookup() 105 error = VOP_LOOKUP(cvp, component, &nvp, &pn, flags, in fake_lookup() 112 cvp = nvp; in fake_lookup() 113 nvp = NULL; in fake_lookup()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_deleg.h | 77 int dsl_deleg_get(const char *ddname, nvlist_t **nvp); 78 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset); 82 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr); 83 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
|
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg.c | 665 idx, nvpair_name(nvp), n ? n - 1 : 0)); in fmd_msg_nv_print_items() 738 data_type_t type = nvpair_type(nvp); in fmd_msg_nv_print_nvpair() 750 (void) nvt->nvt_array(nvp, &a, &n); in fmd_msg_nv_print_nvpair() 753 (void) nvt->nvt_value(nvp, &v); in fmd_msg_nv_print_nvpair() 886 i, nvpair_name(nvp), n ? n - 1 : 0)); in fmd_msg_nv_parse_array() 899 return (fmd_msg_nv_print_nvpair(b, nvp, i)); in fmd_msg_nv_parse_array() 925 if (nvpair_type(nvp) != DATA_TYPE_NVLIST) { in fmd_msg_nv_parse_nvpair() 930 (void) nvpair_value_nvlist(nvp, &nvl); in fmd_msg_nv_parse_nvpair() 941 nvpair_t *nvp = NULL; in fmd_msg_nv_parse_nvname() local 950 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in fmd_msg_nv_parse_nvname() [all …]
|
/illumos-gate/usr/src/cmd/svc/common/ |
H A D | notify_params.c | 240 nvpair_t *tnvp, *nvp; in params_type_print() local 275 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp != NULL; in params_type_print() 276 nvp = nvlist_next_nvpair(nvl, nvp)) { in params_type_print() 277 if (nvpair_type(nvp) != DATA_TYPE_STRING_ARRAY) in params_type_print() 279 nvpair_print(nvp); in params_type_print()
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_deleg.c | 159 zfs_deleg_verify_nvlist(nvlist_t *nvp) in zfs_deleg_verify_nvlist() argument 165 if (nvp == NULL) in zfs_deleg_verify_nvlist() 168 who = nvlist_next_nvpair(nvp, NULL); in zfs_deleg_verify_nvlist() 176 error = nvlist_lookup_nvlist(nvp, nvpair_name(who), &perms); in zfs_deleg_verify_nvlist() 194 } while ((who = nvlist_next_nvpair(nvp, who)) != NULL); in zfs_deleg_verify_nvlist()
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 769 nvpair_t *nvp = NULL; in create_target() local 773 while ((nvp = nvlist_next_nvpair(errlist, nvp)) in create_target() 1263 nvpair_t *nvp = NULL; in modify_target() local 1267 while ((nvp = nvlist_next_nvpair(errlist, nvp)) in modify_target() 1593 nvpair_t *nvp = NULL; in modify_initiator() local 1620 nvp = nvlist_next_nvpair(proplist, nvp); in modify_initiator() 1692 while ((nvp = nvlist_next_nvpair(errlist, nvp)) in modify_initiator() 1866 nvpair_t *nvp = NULL; in modify_defaults() local 1873 nvp = nvlist_next_nvpair(proplist, nvp); in modify_defaults() 1876 if (nvp == NULL) { in modify_defaults() [all …]
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 616 nvpair_t *nvp = NULL; in ap_list_unpack() local 627 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in ap_list_unpack() 628 assert(strcmp(nvpair_name(nvp), RI_AP_T) == 0 && in ap_list_unpack() 629 nvpair_type(nvp) == DATA_TYPE_BYTE_ARRAY); in ap_list_unpack() 675 nvpair_t *nvp = NULL; in dev_list_unpack() local 686 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in dev_list_unpack() 687 assert(strcmp(nvpair_name(nvp), RI_DEV_T) == 0 && in dev_list_unpack() 688 nvpair_type(nvp) == DATA_TYPE_BYTE_ARRAY); in dev_list_unpack() 732 nvpair_t *nvp = NULL; in client_list_unpack() local 743 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in client_list_unpack() [all …]
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 395 nvpair_t *nvp = NULL; in it_nv_to_tgtlist() local 411 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in it_nv_to_tgtlist() 412 name = nvpair_name(nvp); in it_nv_to_tgtlist() 732 nvpair_t *nvp = NULL; in it_nv_to_tpgtlist() local 748 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in it_nv_to_tpgtlist() 749 name = nvpair_name(nvp); in it_nv_to_tpgtlist() 1054 nvpair_t *nvp = NULL; in it_nv_to_tpglist() local 1070 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in it_nv_to_tpglist() 1071 name = nvpair_name(nvp); in it_nv_to_tpglist() 1244 nvpair_t *nvp = NULL; in it_nv_to_inilist() local [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fm.c | 215 nvpair_t *nvp; in fm_nvprintr() local 218 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fm_nvprintr() 220 data_type_t type = nvpair_type(nvp); in fm_nvprintr() 221 const char *name = nvpair_name(nvp); in fm_nvprintr() 247 (void) nvpair_value_byte(nvp, &i8); in fm_nvprintr() 257 (void) nvpair_value_uint8(nvp, &i8); in fm_nvprintr() 267 (void) nvpair_value_uint16(nvp, &i16); in fm_nvprintr() 277 (void) nvpair_value_uint32(nvp, &i32); in fm_nvprintr() 288 (void) nvpair_value_uint64(nvp, &i64); in fm_nvprintr() 300 (void) nvpair_value_string(nvp, &str); in fm_nvprintr() [all …]
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | ioctl.c | 78 nvpair_t *nvp; in nvl2py() local 82 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp; in nvl2py() 83 nvp = nvlist_next_nvpair(nvl, nvp)) { in nvl2py() 90 switch (nvpair_type(nvp)) { in nvl2py() 92 (void) nvpair_value_string(nvp, &sval); in nvl2py() 97 (void) nvpair_value_uint64(nvp, &ival); in nvl2py() 102 (void) nvpair_value_nvlist(nvp, &nval); in nvl2py() 112 (void) nvpair_value_boolean_value(nvp, &bval); in nvl2py() 122 PyDict_SetItemString(pyo, nvpair_name(nvp), pyval); in nvl2py()
|
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.c | 1059 nvpair_t *nvp; in find_macro_definition() local 1143 nvp = NULL; in find_macro_definition() 1144 while ((nvp = nvlist_next_nvpair(nvlist, nvp)) != NULL) { in find_macro_definition() 1152 nvp_match = nvp; in find_macro_definition() 1155 nvp = nvp_match; in find_macro_definition() 1170 switch (nvpair_type(nvp)) { in find_macro_definition() 1236 (void) nvpair_value_byte_array(nvp, in find_macro_definition() 1251 (void) nvpair_value_int16_array(nvp, in find_macro_definition() 1282 (void) nvpair_value_int32_array(nvp, in find_macro_definition() 1313 (void) nvpair_value_int64_array(nvp, in find_macro_definition() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/syscall/ |
H A D | install_utrap.c | 153 utrap_handler_t *ov, *nvp, *pv, *sv, *tmp; in sparc_utrap_install() local 218 nvp = (utrap_handler_t *)new_precise; in sparc_utrap_install() 219 if (nvp != UTRAP_UTH_NOCHANGE) { in sparc_utrap_install() 220 if (((uintptr_t)nvp) & 0x3) in sparc_utrap_install() 246 tmp = atomic_cas_ptr(&p->p_utraps[idx], ov, nvp); in sparc_utrap_install()
|
/illumos-gate/usr/src/uts/common/exec/intp/ |
H A D | intp.c | 195 vnode_t *nvp; in intpexec() 227 if (error = lookuppn(&intppn, &resolvepn, FOLLOW, NULLVPP, &nvp)) { in intpexec() 251 void *, nvp); in intpexec() 284 error = gexec(&nvp, uap, args, &idata, ++level, execsz, exec_file, cred, in intpexec() 295 VN_RELE(nvp); in intpexec()
|