/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | scheme.c | 180 fmdump_nvl2str(nvlist_t *nvl) argument 186 if (nvlist_lookup_string(nvl, FM_FMRI_SCHEME, &name) != 0) { 203 if ((len = sp->sch_ops.sop_nvl2str(nvl, &c, sizeof (c))) == -1 || 205 sp->sch_ops.sop_nvl2str(nvl, s, len + 1) == -1) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/datapath-retire/ |
H A D | cda_cpu.c | 61 cda_dp_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, const char *uuid) argument
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_meth.c | 107 nvlist_t *nvl; local 111 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) < 0) 114 if (nvlist_add_uint32(nvl, retname, ret) != 0) { 115 nvlist_free(nvl); 119 *out = nvl; 407 is_page_fmri(nvlist_t *nvl) argument 412 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, &hcsp) == 0 &&
|
/illumos-gate/usr/src/lib/libds/common/ |
H A D | libds.c | 218 nvlist_t *nvl; local 231 if (sysevent_get_attr_list(sep, &nvl) != 0) { 235 if (nvlist_lookup_uint64(nvl, VLDS_HDL, &hdl) == 0) { 240 if (nvlist_lookup_string(nvl, VLDS_SERVICE_ID, 242 nvlist_lookup_boolean_value(nvl, VLDS_ISCLIENT, 252 nvlist_lookup_uint64(nvl, VLDS_DOMAIN_HDL, 254 nvlist_lookup_uint16(nvl, VLDS_VER_MAJOR, 256 nvlist_lookup_uint16(nvl, VLDS_VER_MINOR, 286 nvlist_lookup_byte_array(nvl, VLDS_DATA, &bufp, 292 nvlist_free(nvl); [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | cpc.c | 569 nvlist_t *nvl; local 594 if (nvlist_unpack(packbuf, len, &nvl, KM_SLEEP) != 0) { 606 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 611 nvlist_free(nvl); 619 nvlist_free(nvl); 624 nvlist_free(nvl); 636 nvlist_free(nvl); 641 nvlist_free(nvl); 752 nvlist_free(nvl); 757 nvlist_free(nvl); [all...] |
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_subr.c | 491 fmri2unum(nvlist_t *nvl, mc_unum_t *unump) argument 498 if (nvlist_lookup_nvlist(nvl, FM_FMRI_HC_SPECIFIC, &hcsp) != 0 || 502 nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &npr) != 0) 541 mcamd_unumtopa_wrap(void *arg, mc_unum_t *unump, nvlist_t *nvl, uint64_t *pap) argument 547 ASSERT(unump == NULL || nvl == NULL); /* enforced at cmi level */ 550 if (!fmri2unum(nvl, &unum)) 656 nvlist_t *nvl = fm_nvlist_create(NULL); local 659 fm_fmri_hc_create(nvl, FM_HC_SCHEME_VERSION, NULL, NULL, 664 fm_fmri_hc_set(nvl, FM_HC_SCHEME_VERSION, NULL, NULL, 3, 670 return (nvl); [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/ |
H A D | ipmi_enum.c | 87 nvlist_t *nvl; local 172 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) 175 if (nvlist_add_uint32(nvl, TOPO_METH_PRESENT_RET, present) != 0) { 176 nvlist_free(nvl); 180 *out = nvl;
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_event.c | 77 nvlist_t *nvl, void *data, fmd_log_t *lp, off64_t off, size_t len) 90 ep->ev_nvl = nvl; 125 fmd_event_create(uint_t type, hrtime_t hrt, nvlist_t *nvl, void *data) argument 141 ep->ev_nvl = nvl; 163 nvlist_lookup_uint64(nvl, FM_EREPORT_ENA, &ena) == 0 && 76 fmd_event_recreate(uint_t type, const fmd_timeval_t *tp, nvlist_t *nvl, void *data, fmd_log_t *lp, off64_t off, size_t len) argument
|
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/ |
H A D | syslog.c | 247 syslog_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 256 if (nvlist_lookup_uint8(nvl, FM_VERSION, &version) != 0 || 263 if (!syslog_msgall && nvlist_lookup_boolean_value(nvl, 270 ret = get_notify_prefs(hdl, nvl, &prefs, &nprefs); 296 if ((msg = fmd_msg_gettext_nv(syslog_msghdl, NULL, nvl)) == NULL) {
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fm.c | 121 nvlist_t *nvl = errorq_elem_nvl(ereport_errorq, eep); local 124 (void) fm_ereport_post(nvl, EVCH_TRYHARD); 126 fm_nvprint(nvl); 213 fm_nvprintr(nvlist_t *nvl, int d, int c, int cols) argument 217 for (nvp = nvlist_next_nvpair(nvl, NULL); 218 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { 348 fm_nvprint(nvlist_t *nvl) argument 355 if (nvlist_lookup_string(nvl, FM_CLASS, &class) == 0) 358 if (fm_nvprintr(nvl, 0, c, ereport_cols) != 0) 610 nvlist_t *nvl; local 643 fm_nvlist_destroy(nvlist_t *nvl, int flag) argument [all...] |
H A D | pool_pset.c | 847 nvlist_t *nvl; local 889 (void) nvlist_dup(cpu->cpu_props, &nvl, KM_SLEEP); 890 (void) nvlist_add_int64(nvl, "cpu.sys_id", cpu->cpu_id); 891 (void) nvlist_add_string(nvl, "cpu.status", 895 (void) nvlist_pack(nvl, &buf, &bufsz, 899 (void) nvlist_free(nvl); 904 (void) nvlist_dup(pset->pset_props, &nvl, KM_SLEEP); 905 (void) nvlist_add_uint64(nvl, "pset.size", ncpu); 906 (void) nvlist_add_uint64(nvl, "pset.load", 910 (void) nvlist_pack(nvl, 927 pool_pset_propget(psetid_t psetid, char *name, nvlist_t *nvl) argument 956 pool_cpu_propget(processorid_t cpuid, char *name, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_memerr.c | 83 nvlist_t *nvl = (nvlist_t *)arg; local 107 (void) nvlist_lookup_nvlist_array(nvl, FM_FMRI_HC_LIST, &hcl, &n2); 136 gmem_find_fault_fru(fmd_hdl_t *hdl, nvlist_t *nvl) { argument 146 find_fault_fru, nvl, &err)) == NULL) { 713 gmem_ce(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 732 err = nvlist_lookup_boolean_value(nvl, GMEM_ERPT_PAYLOAD_DIAGNOSE, 737 if ((nvlist_lookup_uint64(nvl, GMEM_ERPT_PAYLOAD_PHYSADDR, 739 (nvlist_lookup_uint64(nvl, GMEM_ERPT_PAYLOAD_OFFSET, 752 if (nvlist_lookup_nvlist(nvl, GMEM_ERPT_PAYLOAD_RESOURCE, 761 if (nvlist_lookup_nvlist(nvl, GMEM_ERPT_PAYLOAD_DETECTO [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_dataset.c | 224 nvlist_t *nvl; local 226 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { 237 if (nvlist_add_nvlist(nvl, nvpair_name(elem), propval) != 0) { 238 nvlist_free(nvl); 244 return (nvl); 941 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, argument 963 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) { 1458 zfs_add_synthetic_resv(zfs_handle_t *zhp, nvlist_t *nvl) argument 1481 old_reservation) || nvlist_exists(nvl, 1486 if (nvlist_lookup_uint64(nvl, zfs_prop_to_nam 1608 nvlist_t *nvl = NULL; local 1642 nvlist_t *nvl; local 3456 nvlist_t *nvl; member in struct:destroydata 4437 nvlist_t *nvl; member in struct:holdarg 4673 zfs_get_fsacl(zfs_handle_t *zhp, nvlist_t **nvl) argument 4740 zfs_set_fsacl(zfs_handle_t *zhp, boolean_t un, nvlist_t *nvl) argument 4794 zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 438 * parameter nvl and setting the stats according to stats_enable. 445 nvlist_t **nvl, 456 if (*nvl == NULL) { 458 res = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0); 466 res = nvlist_add_byte(*nvl, IPP_CONFIG_TYPE, IPP_SET); 475 if (nvlist_add_uint32(*nvl, IPP_MODULE_VERSION, 482 res = nvlist_add_uint32(*nvl, IPP_ACTION_STATS_ENABLE, 490 res = add_orig_ipqosconf(*nvl); 496 res = ipp_action_modify(action_name, nvl, 0); 524 if (created && *nvl ! 443 modify_params( char *action_name, nvlist_t **nvl, int module_version, boolean_t stats_enable) argument 546 nvlist_t *nvl; local 644 nvlist_t *nvl; local 729 nvlist_t *nvl; local 790 nvlist_t *nvl = flt->nvlist; local 914 nvlist_t *nvl = flt->nvlist; local 1053 nvlist_t *nvl; local 1116 add_orig_ipqosconf(nvlist_t *nvl) argument 2268 nvlist_t **nvl; local 3161 printnvlist( FILE *fp, char *module, nvlist_t *nvl, int printall, ipqos_conf_filter_t *flt, int tab_inserts, place_t place) argument 3956 find_nvpair(nvlist_t *nvl, char *name) argument 8657 parse_kaction( nvlist_t *nvl, ipqos_actinfo_prm_t *ai_prm) argument 8746 parse_kparams( char *module, ipqos_conf_params_t *params, nvlist_t *nvl) argument 8848 parse_kclass( ipqos_conf_class_t *class, nvlist_t *nvl) argument 8897 parse_kfilter( ipqos_conf_filter_t *filter, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | cpu.c | 249 fmri_nvl2str(nvlist_t *nvl, uint8_t version, char *buf, size_t buflen) argument 260 if (nvlist_lookup_uint32(nvl, FM_FMRI_CPU_ID, &cpuid) != 0 || 261 nvlist_lookup_uint64(nvl, FM_FMRI_CPU_SERIAL_ID, &serint) 270 if (nvlist_lookup_uint32(nvl, FM_FMRI_CPU_ID, &cpuid) != 0) 276 if ((rc = nvlist_lookup_string(nvl, FM_FMRI_CPU_SERIAL_ID, 286 rc = nvlist_lookup_uint32(nvl, FM_FMRI_CPU_CACHE_INDEX, 288 rc |= nvlist_lookup_uint32(nvl, FM_FMRI_CPU_CACHE_WAY, &way); 289 rc |= nvlist_lookup_uint16(nvl, FM_FMRI_CPU_CACHE_BIT, &bit); 290 rc |= nvlist_lookup_uint8(nvl, FM_FMRI_CPU_CACHE_TYPE, &type); 292 /* Insure there were no errors accessing the nvl */ [all...] |
H A D | topo_method.c | 387 nvlist_t *nvl, *props, *propval, *tmp; local 403 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0) 410 nvlist_free(nvl); 461 nvlist_add_nvlist(nvl, topo_node_name(fp->tf_node), 465 nvlist_free(nvl); 477 *out = nvl;
|
H A D | dev.c | 133 fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) argument 141 if (nvlist_lookup_uint8(nvl, FM_VERSION, &version) != 0 || 146 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_ID, &devid); 151 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_TGTPTLUN0, &tpl0id); 156 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_PATH, &devpath); 201 nvlist_t *nvl, nvlist_t **out) 210 if ((len = fmri_nvl2str(nvl, NULL, 0)) == 0 || 212 fmri_nvl2str(nvl, name, len + 1) == 0) { 649 topo_mod_dprintf(mp, "construction of dev nvl failed"); 200 dev_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
|
H A D | hc.c | 317 nvlist_t *nvl; local 341 nvl = hc_fmri_create(mod, pfmri, FM_HC_SCHEME_VERSION, name, min, 344 if (nvl == NULL) { 349 if ((node = topo_node_bind(mod, pnode, name, min, nvl)) == NULL) { 353 nvlist_free(nvl); 361 (void) topo_node_fru_set(node, nvl, 0, &err); 364 nvlist_free(nvl); 476 fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) argument 494 if (nvlist_lookup_uint8(nvl, FM_VERSION, &version) != 0 || 499 err = nvlist_lookup_nvlist(nvl, FM_FMRI_AUTHORIT 606 hc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument 904 make_facility(topo_mod_t *mod, char *str, nvlist_t **nvl) argument 1261 nvlist_t *arg, *nvl; local 2139 nvlist_t *nvl; local [all...] |
/illumos-gate/usr/src/uts/common/contract/ |
H A D | device.c | 869 contract_device_status(contract_t *ct, zone_t *zone, int detail, nvlist_t *nvl, argument 884 VERIFY(nvlist_add_uint32(nvl, CTDS_STATE, ctd->cond_state) == 0); 885 VERIFY(nvlist_add_uint32(nvl, CTDS_ASET, ctd->cond_aset) == 0); 886 VERIFY(nvlist_add_uint32(nvl, CTDS_NONEG, ctd->cond_noneg) == 0); 894 VERIFY(nvlist_add_string(nvl, CTDS_MINOR, ctd->cond_minor) == 0); 1595 nvlist_t *nvl; local 1804 nvl = NULL; 1806 VERIFY(nvlist_dup(tnvl, &nvl, 0) == 0); 1810 VERIFY(nvlist_add_uint64(nvl, CTS_NEVID, nevid) 1812 VERIFY(nvlist_lookup_int32(nvl, CTS_NEWC 1943 nvlist_t *nvl; local 1973 nvlist_t *nvl; local 1992 nvlist_t *nvl; local 2012 nvlist_t *nvl; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/ |
H A D | wanboot-cgi.c | 975 resolve_hostname(const char *hostname, nvlist_t *nvl, boolean_t may_be_crap) argument 1018 if (nvlist_add_string(nvl, (char *)hostname, cp) != 0) { 1033 one_name(const char *namestr, nvlist_t *nvl) argument 1047 ret = resolve_hostname(p, nvl, B_TRUE); 1050 ret = resolve_hostname(p, nvl, B_TRUE); 1061 get_hostnames(const char *path, void *nvl) argument 1096 nvl)) { 1138 nvlist_t *nvl; local 1149 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { 1158 get_hostnames, nvl) [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 82 * Checks if the database nvl, `db_nvl' contains and matches ALL of the passed 139 * Checks if the database nvl, `db_nvl' and the input nvl, `in_nvl' intersects. 164 * Checks if the database nvl, `db_nvl', contains and matches ANY of the passed 1038 i_ipmgmt_node2nvl(nvlist_t **nvl, ipmgmt_aobjmap_t *np) argument 1043 *nvl = NULL; 1044 if ((err = nvlist_alloc(nvl, NV_UNIQUE_NAME, 0)) != 0) 1047 if ((err = nvlist_add_string(*nvl, IPADM_NVP_AOBJNAME, 1051 if ((err = nvlist_add_string(*nvl, IPADM_NVP_IFNAME, 1056 if ((err = nvlist_add_string(*nvl, IPADM_NVP_LIFNU 1239 nvlist_t *nvl = NULL; local [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_impl.c | 60 timespec_t *interval, nvlist_t *nvl, rcm_info_t **info) 81 arg.nvl = nvl; 536 nvlist_t *nvl, rcm_info_t **info) 548 flag | RCM_QUERY, seq_num, NULL, nvl, info); 561 seq_num, NULL, nvl, info); 575 nvlist_t *nvl, rcm_info_t **info) 584 seq_num, NULL, nvl, info); 59 common_resource_op(int cmd, char *rsrcname, pid_t pid, uint_t flag, int seq_num, timespec_t *interval, nvlist_t *nvl, rcm_info_t **info) argument 535 request_capacity_change(char *rsrcname, id_t pid, uint_t flag, int seq_num, nvlist_t *nvl, rcm_info_t **info) argument 574 notify_capacity_change(char *rsrcname, id_t pid, uint_t flag, int seq_num, nvlist_t *nvl, rcm_info_t **info) argument
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_ncache.c | 229 sdev_ncache_unpack_nvlist(nvf_handle_t fd, nvlist_t *nvl, char *name) argument 247 rval = nvlist_lookup_string_array(nvl, 264 rval = nvlist_lookup_int32_array(nvl, 287 nvlist_t *nvl, *sub_nvl; local 295 rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP); 331 rval = nvlist_add_nvlist(nvl, DP_DEVNAME_ID, sub_nvl); 340 *ret_nvl = nvl; 345 nvlist_free(nvl);
|
/illumos-gate/usr/src/lib/libstmf/common/ |
H A D | libstmf.h | 345 int stmfGetProviderData(char *providerName, nvlist_t **nvl, int providerType); 346 int stmfGetProviderDataProt(char *providerName, nvlist_t **nvl, 380 int stmfSetProviderData(char *providerName, nvlist_t *nvl, int providerType); 381 int stmfSetProviderDataProt(char *providerName, nvlist_t *nvl,
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 194 itadm_get_password(nvlist_t *nvl, char *key, char *passfile, 198 itadm_opt_to_arr(nvlist_t *nvl, char *key, char *opt, uint32_t *num); 1933 nvlist_t *nvl; local 1954 nvl = cfg->config_global_properties; 1957 (void) nvlist_lookup_string(nvl, "alias", &alias); 1958 (void) nvlist_lookup_string(nvl, "auth", &auth); 1959 (void) nvlist_lookup_boolean_value(nvl, "isns", &val); 1963 (void) nvlist_lookup_string_array(nvl, "isnsserver", &isvrs, 1965 (void) nvlist_lookup_string(nvl, "radiusserver", &rsvr); 1966 if (nvlist_exists(nvl, "radiussecre 2008 itadm_get_password(nvlist_t *nvl, char *key, char *passfile, char *phrase) argument 2117 itadm_opt_to_arr(nvlist_t *nvl, char *key, char *opt, uint32_t *num) argument [all...] |