/illumos-gate/usr/src/cmd/fm/modules/common/ses-log-transport/ |
H A D | ses_log_transport.c | 163 nvlist_t *nvl; local 170 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) == 0) { 172 e |= nvlist_add_string(nvl, FM_CLASS, fullclass); 173 e |= nvlist_add_uint8(nvl, FM_VERSION, FM_EREPORT_VERSION); 174 e |= nvlist_add_uint64(nvl, FM_EREPORT_ENA, ena); 175 e |= nvlist_add_nvlist(nvl, FM_EREPORT_DETECTOR, detector); 176 e |= nvlist_merge(nvl, payload, 0); 179 fmd_xprt_post(hdl, xprt, nvl, 0); 181 nvlist_free(nvl);
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | us3_cheetahplus.c | 1092 cpu_payload_add_pcache(struct async_flt *aflt, nvlist_t *nvl) argument 1118 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1P_WAYS, 1122 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_L1P_DATA, 1131 cpu_payload_add_tlb(struct async_flt *aflt, nvlist_t *nvl) argument 1155 fm_payload_set(nvl, 1158 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_ITLB_DATA, 1168 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_VA, 1176 fm_payload_set(nvl, 1179 fm_payload_set(nvl, FM_EREPORT_PAYLOAD_NAME_DTLB_DATA,
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_prop.h | 91 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl);
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 670 nvlist_t *nvl; local 684 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { 704 if (nvlist_add_int32(nvl, "old_total", sysncpus) != 0 || 705 nvlist_add_int32(nvl, "new_total", newncpus) != 0 || 706 nvlist_add_int32_array(nvl, "old_cpu_list", syscpuids, 708 nvlist_add_int32_array(nvl, "new_cpu_list", newcpuids, 727 RCM_QUERY|RCM_SCOPE, nvl, &rcm_info); 734 nvlist_free(nvl); 783 nvlist_t *nvl; local 788 if (nvlist_alloc(&nvl, NV_UNIQUE_NAM [all...] |
/illumos-gate/usr/src/cmd/beadm/ |
H A D | beadm.c | 629 be_nvl_add_string(nvlist_t *nvl, const char *name, const char *val) argument 631 assert(nvl != NULL); 633 if (nvlist_add_string(nvl, name, val) != 0) { 643 be_nvl_add_nvlist(nvlist_t *nvl, const char *name, nvlist_t *val) argument 645 assert(nvl != NULL); 647 if (nvlist_add_nvlist(nvl, name, val) != 0) { 657 be_nvl_add_uint16(nvlist_t *nvl, const char *name, uint16_t val) argument 659 assert(nvl != NULL); 661 if (nvlist_add_uint16(nvl, name, val) != 0) {
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_iter.c | 42 nvlist_t *nvl = zfs_get_clones_nvl(zhp); local 45 if (nvl == NULL) 48 for (pair = nvlist_next_nvpair(nvl, NULL); pair != NULL; 49 pair = nvlist_next_nvpair(nvl, pair)) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_Lxcacheerr.c | 379 extract_data_from_ereport_payload(fmd_hdl_t *hdl, nvlist_t *nvl, argument 394 tag_afar_status = cmd_afar_valid(hdl, nvl, 0, &tag_afar); 413 if (nvlist_lookup_int32(nvl, FM_EREPORT_RECHECK_OF_TAGS, 418 if (nvlist_lookup_uint64_array(nvl, payload_namep, 956 cmd_us4plus_tag_err(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, argument 979 ret = extract_data_from_ereport_payload(hdl, nvl, cpu, pstype, 1001 ret = nvlist_lookup_int32(nvl, FM_EREPORT_RECHECK_OF_TAGS, 1049 * We free only the nvl list here. 1117 * nvl, ep, clcode 1120 if (nvlist_dup(nvl, 1973 cmd_xr_pn_cache_fill(fmd_hdl_t *hdl, nvlist_t *nvl, cmd_xr_t *xr, cmd_cpu_t *cpu, cmd_errcl_t clcode) argument [all...] |
/illumos-gate/usr/src/lib/libstmf/common/ |
H A D | stmf.c | 2002 nvlist_t *nvl = NULL; local 2028 stmfRet = stmfGetProviderDataProt("sbd", &nvl, 2032 ret = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0); 2053 ret = nvlist_add_string(nvl, guidAsciiBuf, filename); 2055 ret = nvlist_remove(nvl, guidAsciiBuf, 2063 stmfRet = stmfSetProviderDataProt("sbd", nvl, 2066 stmfRet = stmfSetProviderDataProt("sbd", nvl, 2081 nvlist_free(nvl); 2082 nvl = NULL; 2105 nvlist_free(nvl); 3914 stmfGetProviderData(char *providerName, nvlist_t **nvl, int providerType) argument 3934 stmfGetProviderDataProt(char *providerName, nvlist_t **nvl, int providerType, uint64_t *setToken) argument 4994 nvlist_t *nvl = NULL; local 6230 stmfSetProviderData(char *providerName, nvlist_t *nvl, int providerType) argument 6250 stmfSetProviderDataProt(char *providerName, nvlist_t *nvl, int providerType, uint64_t *setToken) argument 6333 getProviderData(char *providerName, nvlist_t **nvl, int providerType, uint64_t *setToken) argument 6470 setProviderData(int fd, char *providerName, nvlist_t *nvl, int providerType, uint64_t *setToken) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 1151 nvlist_t *nvl; local 1177 (void) nvlist_alloc(&nvl, 0, KM_SLEEP); 1187 if (ibnex_get_commsvcnode_snapshot(&nvl, 1195 nvlist_free(nvl); 1208 if (ibnex_get_commsvcnode_snapshot(&nvl, 1216 nvlist_free(nvl); 1232 if (ibnex_get_commsvcnode_snapshot(&nvl, 1242 nvlist_free(nvl); 1267 if (ibnex_fill_ioc_tmp(&nvl, ioc_listp) != 0) { 1271 nvlist_free(nvl); [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_page.c | 86 cma_page_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, argument 95 (void) nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc);
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | eft.c | 86 eft_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 97 (sp->hdlr)(hdl, ep, nvl, class);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/ |
H A D | cma_cpu_sun4v.c | 55 cma_cpu_blacklist(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, argument 67 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &fmri) != 0)
|
/illumos-gate/usr/src/lib/libshare/smb/ |
H A D | libshare_smb.c | 1596 nvlist_t *nvl; local 1634 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) 1638 err |= nvlist_add_string(nvl, SHOPT_CSC, opt); 1641 err |= nvlist_add_string(nvl, SHOPT_ABE, opt); 1645 err |= nvlist_add_string(nvl, SHOPT_GUEST, opt); 1649 err |= nvlist_add_string(nvl, SHOPT_RO, si->shr_access_ro); 1652 err |= nvlist_add_string(nvl, SHOPT_RW, si->shr_access_rw); 1655 err |= nvlist_add_string(nvl, SHOPT_NONE, si->shr_access_none); 1658 nvlist_free(nvl); 1662 err = smb_update_optionset_props(handle, resource, nvl); 2375 smb_update_optionset_props(sa_handle_t handle, sa_resource_t resource, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_subscribe.c | 216 nvlist_t *nvl; local 225 if ((ev = fmev_sysev2fmev(IHDL2HDL(ihdl), sep, &class, &nvl)) == NULL) { 233 sip->si_cb(ev, class, nvl, sip->si_cbarg); 608 fmev_shdl_nvl2str(fmev_shdl_t hdl, nvlist_t *nvl) argument 630 if (topo_fmri_nvl2str(g_topohdl, nvl, &fmri, &topoerr) == 0) {
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/watchdog/ |
H A D | piclwatchdog.c | 244 nvlist_t *nvl; local 258 if ((rc = nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, NULL)) != 0) { 264 if ((rc = nvlist_add_uint64(nvl, PICLEVENTARG_NODEHANDLE, 266 nvlist_free(nvl); 272 if ((rc = nvlist_add_string(nvl, PICLEVENTARG_STATE, 274 nvlist_free(nvl); 280 if ((rc = nvlist_pack(nvl, &pack_buf, &nvl_size, NV_ENCODE_NATIVE, 282 nvlist_free(nvl); 292 nvlist_free(nvl); 295 nvlist_free(nvl); [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 295 * Note : nvl is free'd by fmd. 300 nvlist_t *nvl; local 303 if (nvlist_unpack((char *)buf, buflen, &nvl, 0)) { 308 rv = etm_xport_post_filter(hdl, nvl, mp->epm_ep_str); 312 nvlist_free(nvl); 325 fmd_xprt_post(hdl, mp->epm_xprthdl, nvl, 0); 336 fmd_xprt_post(hdl, mp->epm_xprthdl, nvl, 0); 341 nvlist_free(nvl); 348 nvlist_free(nvl); 1135 etm_send(fmd_hdl_t *hdl, fmd_xprt_t *xprthdl, fmd_event_t *ep, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_xml.c | 196 xlate_common(topo_mod_t *mp, xmlNodePtr xn, topo_type_t ptype, nvlist_t *nvl, argument 214 rv = nvlist_add_int32(nvl, name, (int32_t)ui); 219 rv = nvlist_add_uint32(nvl, name, (uint32_t)ui); 224 rv = nvlist_add_int64(nvl, name, (int64_t)ui); 229 rv = nvlist_add_uint64(nvl, name, ui); 234 rv = nvlist_add_nvlist(nvl, name, fmri); 240 rv = nvlist_add_string(nvl, name, (char *)str); 313 rv = nvlist_add_int32_array(nvl, name, (int32_t *)arrbuf, 332 rv = nvlist_add_uint32_array(nvl, name, (uint32_t *)arrbuf, 351 rv = nvlist_add_int64_array(nvl, nam 425 xmlprop_xlate(topo_mod_t *mp, xmlNodePtr xn, nvlist_t *nvl) argument [all...] |
H A D | svc.c | 419 nvlist_t *nvl, nvlist_t **out) 436 if (nvlist_lookup_uint8(nvl, FM_VERSION, &scheme_version) != 0 || 443 err = nvlist_lookup_string(nvl, FM_FMRI_SVC_INSTANCE, &instance); 446 err = nvlist_lookup_string(nvl, FM_FMRI_SVC_AUTH_SCOPE, &scope); 449 err = nvlist_lookup_string(nvl, FM_FMRI_SVC_AUTH_SYSTEM_FQN, &fqn); 452 err = nvlist_lookup_string(nvl, FM_FMRI_SVC_CONTRACT_ID, &contract); 459 if (nvlist_lookup_string(nvl, FM_FMRI_SVC_NAME, &service) != 0) 418 svc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 4240 nvlist_t *nvl = NULL; local 4249 nvl = build_event_attributes(EC_DEV_REMOVE, ev_subclass, 4346 if (nvl) { 4347 log_event(EC_DEV_REMOVE, ev_subclass, nvl); 4348 free(nvl); 7840 * Add the specified property to nvl. 7847 add_property(nvlist_t *nvl, di_prop_t prop) argument 7872 if (nvlist_add_boolean(nvl, attr_name) != 0) 7881 if (nvlist_add_int32_array(nvl, attr_name, int32p, 7893 if (nvlist_add_int64_array(nvl, attr_nam 8195 nvlist_t *nvl; local 8348 log_event(char *class, char *subclass, nvlist_t *nvl) argument 8366 enqueue_sysevent(char *class, char *subclass, nvlist_t *nvl) argument 8415 nvlist_t *nvl; local [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_log.c | 799 nvlist_t *nvl = NULL; local 809 obj->eo_item.ei_size, &nvl, &fmd.d_nva)) != 0) { 826 if (nvl == NULL || ftv.ftv_sec == -1ULL || ftv.ftv_nsec == -1ULL) { 829 nvlist_free(nvl); 833 if (nvlist_lookup_string(nvl, FM_CLASS, &class) != 0) { 836 nvlist_free(nvl); 841 &ftv, nvl, class, lp, off, ea_pack_object(grp, NULL, 0)));
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | aggr_rcm.c | 701 char **errorp, nvlist_t *nvl, rcm_info_t **depend_info) 727 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 1265 nvlist_t *nvl = NULL; local 1282 if (nvlist_alloc(&nvl, 0, 0) != 0) { 1298 if (nvlist_add_uint64(nvl, RCM_NV_LINKID, id) != 0) { 1313 0, nvl, NULL) != RCM_SUCCESS) { 1322 nvlist_free(nvl); 700 aggr_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, nvlist_t *nvl, rcm_info_t **depend_info) argument
|
H A D | ibpart_rcm.c | 618 char **errorp, nvlist_t *nvl, rcm_info_t **info) 645 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 1206 nvlist_t *nvl = NULL; local 1219 if (nvlist_alloc(&nvl, 0, 0) != 0) { 1232 if (nvlist_add_uint64(nvl, RCM_NV_LINKID, id) != 0) { 1241 if (rcm_notify_event(hd, RCM_RESOURCE_LINK_NEW, 0, nvl, NULL) != 1251 nvlist_free(nvl); 617 ibpart_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, nvlist_t *nvl, rcm_info_t **info) argument
|
H A D | vlan_rcm.c | 607 char **errorp, nvlist_t *nvl, rcm_info_t **info) 634 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 1175 nvlist_t *nvl = NULL; local 1187 if (nvlist_alloc(&nvl, 0, 0) != 0) { 1200 if (nvlist_add_uint64(nvl, RCM_NV_LINKID, id) != 0) { 1209 if (rcm_notify_event(hd, RCM_RESOURCE_LINK_NEW, 0, nvl, NULL) != 1219 nvlist_free(nvl); 606 vlan_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, nvlist_t *nvl, rcm_info_t **info) argument
|
H A D | vnic_rcm.c | 610 char **errorp, nvlist_t *nvl, rcm_info_t **info) 637 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 1187 nvlist_t *nvl = NULL; local 1199 if (nvlist_alloc(&nvl, 0, 0) != 0) { 1211 if (nvlist_add_uint64(nvl, RCM_NV_LINKID, id) != 0) { 1220 if (rcm_notify_event(hd, RCM_RESOURCE_LINK_NEW, 0, nvl, NULL) != 1230 nvlist_free(nvl); 609 vnic_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, nvlist_t *nvl, rcm_info_t **info) argument
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devid_cache.c | 251 devid_cache_unpack_nvlist(nvf_handle_t fd, nvlist_t *nvl, char *name) argument 264 rval = nvlist_lookup_byte_array(nvl, 294 nvlist_t *nvl, *sub_nvl; local 301 rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); 333 rval = nvlist_add_nvlist(nvl, np->nvp_devpath, sub_nvl); 342 *ret_nvl = nvl; 347 nvlist_free(nvl);
|