/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tokenmtddi.c | 124 nvlist_t *nvlp; in tokenmt_create_action() local 134 nvlp = *nvlpp; in tokenmt_create_action() 138 nvlist_free(nvlp); in tokenmt_create_action() 143 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_RED_ACTION_NAME, in tokenmt_create_action() 145 nvlist_free(nvlp); in tokenmt_create_action() 153 nvlist_free(nvlp); in tokenmt_create_action() 160 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_YELLOW_ACTION_NAME, in tokenmt_create_action() 164 nvlist_free(nvlp); in tokenmt_create_action() 175 if ((rc = nvlist_lookup_string(nvlp, TOKENMT_GREEN_ACTION_NAME, in tokenmt_create_action() 177 nvlist_free(nvlp); in tokenmt_create_action() [all …]
|
H A D | tswtclddi.c | 105 nvlist_t *nvlp; in tswtcl_create_action() local 112 nvlp = *nvlpp; in tswtcl_create_action() 117 nvlist_free(nvlp); in tswtcl_create_action() 122 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_RED_ACTION_NAME, in tswtcl_create_action() 124 nvlist_free(nvlp); in tswtcl_create_action() 132 nvlist_free(nvlp); in tswtcl_create_action() 139 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_YELLOW_ACTION_NAME, in tswtcl_create_action() 141 nvlist_free(nvlp); in tswtcl_create_action() 149 nvlist_free(nvlp); in tswtcl_create_action() 156 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_GREEN_ACTION_NAME, in tswtcl_create_action() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/ |
H A D | ippctl.c | 206 static int ippctl_attach_modname(nvlist_t *nvlp, char *val); 207 static int ippctl_attach_modname_array(nvlist_t *nvlp, char **val, int); 208 static int ippctl_attach_aname_array(nvlist_t *nvlp, char **val, int); 761 nvlist_t *nvlp, in ippctl_extract_op() argument 771 if ((rc = nvlist_lookup_byte(nvlp, IPPCTL_OP, valp)) != 0) in ippctl_extract_op() 774 (void) nvlist_remove_all(nvlp, IPPCTL_OP); in ippctl_extract_op() 782 nvlist_t *nvlp, in ippctl_extract_aname() argument 793 if ((rc = nvlist_lookup_string(nvlp, IPPCTL_ANAME, &ptr)) != 0) in ippctl_extract_aname() 798 (void) nvlist_remove_all(nvlp, IPPCTL_ANAME); in ippctl_extract_aname() 806 nvlist_t *nvlp, in ippctl_extract_modname() argument [all …]
|
/illumos-gate/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmkddi.c | 102 nvlist_t *nvlp; in dlcosmk_create_action() local 110 nvlp = *nvlpp; in dlcosmk_create_action() 114 nvlist_free(nvlp); in dlcosmk_create_action() 119 if ((err = nvlist_lookup_string(nvlp, DLCOSMK_NEXT_ACTION_NAME, in dlcosmk_create_action() 121 nvlist_free(nvlp); in dlcosmk_create_action() 129 nvlist_free(nvlp); in dlcosmk_create_action() 136 if ((err = nvlist_lookup_byte(nvlp, DLCOSMK_COS, in dlcosmk_create_action() 138 nvlist_free(nvlp); in dlcosmk_create_action() 146 if ((err = nvlist_lookup_uint32(nvlp, DLCOSMK_BAND, ¶m)) != 0) { in dlcosmk_create_action() 147 nvlist_free(nvlp); in dlcosmk_create_action() [all …]
|
/illumos-gate/usr/src/lib/libipp/ |
H A D | libipp.c | 122 nvlist_t *nvlp; in ipp_action_create() local 140 nvlp = *nvlpp; in ipp_action_create() 141 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP, in ipp_action_create() 147 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME, in ipp_action_create() 154 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) { in ipp_action_create() 159 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) { in ipp_action_create() 181 nvlist_t *nvlp; in ipp_action_destroy() local 198 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) { in ipp_action_destroy() 200 nvlp = NULL; in ipp_action_destroy() 204 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP, in ipp_action_destroy() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacctddi.c | 180 nvlist_t *nvlp; in flowacct_create_action() local 189 nvlp = *nvlpp; in flowacct_create_action() 194 nvlist_free(nvlp); in flowacct_create_action() 199 if ((rc = nvlist_lookup_string(nvlp, FLOWACCT_NEXT_ACTION_NAME, in flowacct_create_action() 201 nvlist_free(nvlp); in flowacct_create_action() 209 nvlist_free(nvlp); in flowacct_create_action() 216 nvlist_free(nvlp); in flowacct_create_action() 223 (void) nvlist_lookup_uint32(nvlp, FLOWACCT_TIMEOUT, &timeout); in flowacct_create_action() 229 (void) nvlist_lookup_uint32(nvlp, FLOWACCT_TIMER, &timer); in flowacct_create_action() 234 if ((rc = nvlist_lookup_uint32(nvlp, FLOWACCT_MAX_LIMIT, in flowacct_create_action() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 125 nvlist_t *nvlp; in dscpmk_create_action() local 135 nvlp = *nvlpp; in dscpmk_create_action() 139 nvlist_free(nvlp); in dscpmk_create_action() 144 if ((err = nvlist_lookup_string(nvlp, DSCPMK_NEXT_ACTION_NAME, in dscpmk_create_action() 146 nvlist_free(nvlp); in dscpmk_create_action() 155 nvlist_free(nvlp); in dscpmk_create_action() 169 if ((err = nvlist_lookup_int32_array(nvlp, DSCPMK_DSCP_MAP, in dscpmk_create_action() 181 if ((err = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, &bstats)) in dscpmk_create_action() 190 nvlist_free(nvlp); in dscpmk_create_action() 207 if ((err = nvlist_lookup_uint32(nvlp, DSCPMK_DETAILED_STATS, &bstats)) in dscpmk_create_action() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | classifierddi.c | 158 nvlist_t *nvlp; in ipgpc_create_action() local 160 nvlp = *nvlpp; in ipgpc_create_action() 165 nvlist_free(nvlp); in ipgpc_create_action() 170 nvlist_free(nvlp); in ipgpc_create_action() 175 if ((rc = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, in ipgpc_create_action() 186 nvlist_free(nvlp); in ipgpc_create_action() 191 nvlist_free(nvlp); in ipgpc_create_action() 210 nvlist_t *nvlp; in ipgpc_modify_action() local 219 nvlp = *nvlpp; in ipgpc_modify_action() 222 if ((rc = nvlist_lookup_byte(nvlp, IPP_CONFIG_TYPE, &config_type)) in ipgpc_modify_action() [all …]
|
H A D | filters.c | 584 ipgpc_parse_filter(ipgpc_filter_t *filter, nvlist_t *nvlp) in ipgpc_parse_filter() argument 594 if (nvlist_lookup_string(nvlp, CLASSIFIER_FILTER_NAME, &s) != 0) { in ipgpc_parse_filter() 599 if (nvlist_lookup_uint32(nvlp, IPP_CONFIG_ORIGINATOR, in ipgpc_parse_filter() 615 if (nvlist_lookup_uint32(nvlp, IPGPC_UID, &filter->uid) != 0) { in ipgpc_parse_filter() 620 if (nvlist_lookup_int32(nvlp, IPGPC_PROJID, &filter->projid) != 0) { in ipgpc_parse_filter() 625 if (nvlist_lookup_uint32(nvlp, IPGPC_IF_INDEX, &filter->if_index) in ipgpc_parse_filter() 631 if (nvlist_lookup_uint32(nvlp, IPGPC_DIR, &filter->direction) != 0) { in ipgpc_parse_filter() 636 if (nvlist_lookup_byte(nvlp, IPGPC_PROTO, &filter->proto) != 0) { in ipgpc_parse_filter() 644 if (nvlist_lookup_byte(nvlp, IPGPC_DSFIELD_MASK, &filter->dsfield_mask) in ipgpc_parse_filter() 647 if (nvlist_lookup_byte(nvlp, IPGPC_DSFIELD, &filter->dsfield) in ipgpc_parse_filter() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | mdescplugin.c | 105 nvlist_t *nvlp = NULL; in dr_handler() local 115 if (nvlist_unpack((char *)earg, size, &nvlp, 0)) { in dr_handler() 119 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in dr_handler() 120 nvlist_free(nvlp); in dr_handler() 125 nvlist_free(nvlp); in dr_handler() 129 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in dr_handler() 130 nvlist_free(nvlp); in dr_handler() 134 if (nvlist_lookup_string(nvlp, PICLEVENTARG_HINT, &hint)) { in dr_handler() 135 nvlist_free(nvlp); in dr_handler() 141 nvlist_free(nvlp); in dr_handler() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_nvl.c | 45 topo_mod_nvalloc(topo_mod_t *mod, nvlist_t **nvlp, uint_t nvflag) in topo_mod_nvalloc() argument 47 if (nvlist_xalloc(nvlp, nvflag, &mod->tm_alloc->ta_nva) != 0) in topo_mod_nvalloc() 54 topo_mod_nvdup(topo_mod_t *mod, nvlist_t *nvl, nvlist_t **nvlp) in topo_mod_nvdup() argument 56 if (nvlist_xdup(nvl, nvlp, &mod->tm_alloc->ta_nva) != 0) in topo_mod_nvdup() 63 topo_hdl_nvalloc(topo_hdl_t *thp, nvlist_t **nvlp, uint_t nvflag) in topo_hdl_nvalloc() argument 66 if (nvlist_xalloc(nvlp, nvflag, &thp->th_alloc->ta_nva) != 0) in topo_hdl_nvalloc() 73 topo_hdl_nvdup(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **nvlp) in topo_hdl_nvdup() argument 75 if (nvlist_xdup(nvl, nvlp, &thp->th_alloc->ta_nva) != 0) in topo_hdl_nvdup()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | piclevent.c | 100 parse_piclevent(nvlist_t *nvlp) in parse_piclevent() argument 108 if (nvlist_lookup_string(nvlp, PICLEVENTARG_EVENT_NAME, &enval)) in parse_piclevent() 112 if (nvlist_pack(nvlp, &packed_nvl, &nvl_size, NV_ENCODE_NATIVE, 0)) in parse_piclevent() 148 nvlist_t *nvlp; in event_handler() local 159 if (nvlist_unpack(argp, asize, &nvlp, 0)) in event_handler() 162 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in event_handler() 163 nvlist_free(nvlp); in event_handler() 168 parse_piclevent(nvlp); in event_handler() 172 nvlist_free(nvlp); in event_handler()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 64 nonunique_nvlist_lookup_##suffix(nvlist_t *nvlp, const char *n, atype *rpp) \ 67 while ((nvp = nvlist_next_nvpair(nvlp, nvp)) != NULL) { \ 135 nvlist_t *list_of_lists, *nvlp, *dupnvlp; in find_disk_monitor_private_pgroup() local 158 nvpair_value_nvlist(nvp, &nvlp) != 0) in find_disk_monitor_private_pgroup() 161 dm_assert(nvlp != NULL); in find_disk_monitor_private_pgroup() 164 if (nonunique_nvlist_lookup_string(nvlp, in find_disk_monitor_private_pgroup() 174 if (nvlist_dup(nvlp, &dupnvlp, 0) == 0) in find_disk_monitor_private_pgroup() 465 nvlist_t *nvlp = find_disk_monitor_private_pgroup(node); in topo_add_bay() local 489 if (nvlp == NULL) in topo_add_bay() 517 nvlist_free(nvlp); in topo_add_bay() [all …]
|
H A D | diskmon_conf.c | 166 nvlist_t *nvlp = NULL; in namevalpr_to_nvlist() local 168 if (nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0) != 0) { in namevalpr_to_nvlist() 172 if (nvlist_add_string(nvlp, nvprp->name, nvprp->value) != 0) { in namevalpr_to_nvlist() 173 nvlist_free(nvlp); in namevalpr_to_nvlist() 177 return (nvlp); in namevalpr_to_nvlist() 332 nvlist_t *nvlp) in new_diskmon() argument 336 if (nvlp != NULL) in new_diskmon() 337 dmp->props = nvlp; in new_diskmon() 711 print_props(nvlist_t *nvlp, FILE *fp, char *prefix) in print_props() argument 713 nvpair_t *nvp = nvlist_next_nvpair(nvlp, NULL); in print_props() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | xattr.c | 211 xattr_fill_nvlist(vnode_t *vp, xattr_view_t xattr_view, nvlist_t *nvlp, in xattr_fill_nvlist() argument 293 VERIFY(nvlist_add_uint64(nvlp, attr_to_name(attr), in xattr_fill_nvlist() 323 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 328 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 333 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 338 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 343 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 348 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 353 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() 358 VERIFY(nvlist_add_boolean_value(nvlp, in xattr_fill_nvlist() [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_profile.c | 780 nvlist_t **nvlp = NULL; in prof_add_rule() local 790 nvlp = &(dir->sdev_prof.dev_glob_incdir); in prof_add_rule() 792 nvlp = &(dir->sdev_prof.dev_name); in prof_add_rule() 796 nvlp = &(dir->sdev_prof.dev_glob_excdir); in prof_add_rule() 798 nvlp = &(dir->sdev_prof.dev_name); in prof_add_rule() 801 nvlp = &(dir->sdev_prof.dev_map); in prof_add_rule() 804 nvlp = &(dir->sdev_prof.dev_symlink); in prof_add_rule() 809 if (*nvlp == NULL) { in prof_add_rule() 810 error = nvlist_alloc(nvlp, NV_UNIQUE_NAME, KM_SLEEP); in prof_add_rule() 815 rv = nvlist_add_string(*nvlp, name, tgt); in prof_add_rule() [all …]
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | devfm_machdep.c | 151 populate_cpu(nvlist_t **nvlp, cmi_hdl_t hdl) in populate_cpu() argument 157 (void) nvlist_alloc(nvlp, NV_UNIQUE_NAME, KM_SLEEP); in populate_cpu() 174 (void) nvlist_add_nvlist(*nvlp, FM_PHYSCPU_INFO_CHIP_ROOTS, in populate_cpu() 176 (void) nvlist_add_uint16(*nvlp, FM_PHYSCPU_INFO_SMBIOS_ID, in populate_cpu() 181 fm_payload_set(*nvlp, in populate_cpu() 215 fm_payload_set(*nvlp, in populate_cpu()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 1474 nvlist_t *nvlp; in frudr_evhandler() local 1491 if (nvlist_unpack((char *)earg, size, &nvlp, 0)) { in frudr_evhandler() 1495 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in frudr_evhandler() 1496 nvlist_free(nvlp); in frudr_evhandler() 1501 nvlist_free(nvlp); in frudr_evhandler() 1505 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in frudr_evhandler() 1506 nvlist_free(nvlp); in frudr_evhandler() 1525 nvlist_free(nvlp); in frudr_evhandler() 1529 if (nvlist_lookup_string(nvlp, PICLEVENTARG_HINT, &hint)) { in frudr_evhandler() 1530 nvlist_free(nvlp); in frudr_evhandler() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/piclsbl/ |
H A D | piclsbl.c | 204 nvlist_t *nvlp = NULL; in piclsbl_handler() local 239 if (nvlist_unpack((char *)earg, size, &nvlp, 0)) in piclsbl_handler() 241 if (nvlist_lookup_string(nvlp, "devfs-path", &devfs_path)) in piclsbl_handler() 375 nvlist_free(nvlp); in piclsbl_handler()
|
/illumos-gate/usr/src/common/nvpair/ |
H A D | nvpair.c | 563 nvlist_alloc(nvlist_t **nvlp, uint_t nvflag, int kmflag) in nvlist_alloc() argument 566 return (nvlist_xalloc(nvlp, nvflag, in nvlist_alloc() 569 return (nvlist_xalloc(nvlp, nvflag, nv_alloc_nosleep)); in nvlist_alloc() 574 nvlist_xalloc(nvlist_t **nvlp, uint_t nvflag, nv_alloc_t *nva) in nvlist_xalloc() argument 578 if (nvlp == NULL || nva == NULL) in nvlist_xalloc() 584 if ((*nvlp = nv_mem_zalloc(priv, in nvlist_xalloc() 590 nvlist_init(*nvlp, nvflag, priv); in nvlist_xalloc() 832 nvlist_t **nvlp = EMBEDDED_NVL_ARRAY(nvp); in nvpair_free() local 836 nvlist_free(nvlp[i]); in nvpair_free() 899 nvlist_dup(nvlist_t *nvl, nvlist_t **nvlp, int kmflag) in nvlist_dup() argument [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/frudata/ |
H A D | fru_data.c | 2173 nvlist_t *nvlp; in frudata_state_change_evhandler() local 2183 if (nvlist_unpack((char *)event_arg, size, &nvlp, 0)) { in frudata_state_change_evhandler() 2187 if (nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, in frudata_state_change_evhandler() 2189 nvlist_free(nvlp); in frudata_state_change_evhandler() 2195 nvlist_free(nvlp); in frudata_state_change_evhandler() 2201 nvlist_free(nvlp); in frudata_state_change_evhandler() 2205 if (nvlist_lookup_string(nvlp, PICLEVENTARG_STATE, in frudata_state_change_evhandler() 2207 nvlist_free(nvlp); in frudata_state_change_evhandler() 2214 nvlist_free(nvlp); in frudata_state_change_evhandler() 2221 nvlist_free(nvlp); in frudata_state_change_evhandler() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_xprt.c | 1092 nvlist_t **nvlp; in fmd_xprt_list_suspect_local() local 1122 (void) nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST, &nvlp, in fmd_xprt_list_suspect_local() 1131 (void) nvlist_xdup(nvlp[i], &flt_copy, &fmd.d_nva); in fmd_xprt_list_suspect_local() 1132 (void) nvlist_lookup_nvlist(nvlp[i], FM_FAULT_RESOURCE, &rsrc); in fmd_xprt_list_suspect_local() 1137 if (nvlist_lookup_nvlist(nvlp[i], FM_FAULT_FRU, &fru) != 0 && in fmd_xprt_list_suspect_local() 1143 if (nvlist_lookup_nvlist(nvlp[i], FM_FAULT_ASRU, &asru) != 0 && in fmd_xprt_list_suspect_local() 1149 if (nvlist_lookup_string(nvlp[i], FM_FAULT_LOCATION, in fmd_xprt_list_suspect_local() 1202 nvlist_t **nvlp; in fmd_xprt_list_suspect() local 1229 (void) nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST, &nvlp, in fmd_xprt_list_suspect() 1248 if (nvlist_lookup_nvlist(nvlp[i], FM_FAULT_ASRU, in fmd_xprt_list_suspect() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 2152 nvlist_t *nvlp; in frudr_evhandler() local 2165 if (nvlist_unpack((char *)earg, size, &nvlp, 0)) in frudr_evhandler() 2168 if (nvlist_lookup_string(nvlp, PICLEVENTARG_DATA_TYPE, &dtype)) { in frudr_evhandler() 2169 nvlist_free(nvlp); in frudr_evhandler() 2174 nvlist_free(nvlp); in frudr_evhandler() 2178 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in frudr_evhandler() 2179 nvlist_free(nvlp); in frudr_evhandler() 2183 if (nvlist_lookup_string(nvlp, PICLEVENTARG_HINT, &hint)) { in frudr_evhandler() 2184 nvlist_free(nvlp); in frudr_evhandler() 2189 nvlist_free(nvlp); in frudr_evhandler() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 900 nvlist_t *nvlp; in piclmemcfg_evhandler() local 903 if (nvlist_unpack((char *)earg, size, &nvlp, 0)) in piclmemcfg_evhandler() 906 if (nvlist_lookup_uint64(nvlp, PICLEVENTARG_NODEHANDLE, &nodeh)) { in piclmemcfg_evhandler() 907 nvlist_free(nvlp); in piclmemcfg_evhandler() 910 nvlist_free(nvlp); in piclmemcfg_evhandler()
|
/illumos-gate/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_evaccess.c | 69 fmev_sysev2fmev(fmev_shdl_t hdl, sysevent_t *sep, char **clsp, nvlist_t **nvlp) in fmev_sysev2fmev() argument 88 *nvlp = iep->ei_nvl; in fmev_sysev2fmev()
|