/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | nvlrender.c | 51 char *class, *fmristr = NULL; local 65 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) != 0 || 66 fmristr == NULL) 71 (void) fprintf(fp, "%s", fmristr); 72 topo_hdl_strfree(thp, fmristr);
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound_smf.c | 78 char *fmristr; local 84 fmristr = fmd_hdl_alloc(hdl, len, FMD_SLEEP); 85 (void) snprintf(fmristr, len, "svc:///%s", shortfmristr + 5); 87 return (fmristr); 98 char *fmristr; local 101 if ((fmristr = shortfmri_to_fmristr(hdl, shortfmristr)) == NULL) 106 if (topo_fmri_str2nvl(thp, fmristr, &fmri, &err) != 0) { 108 fmristr); 109 fmd_hdl_strfree(hdl, fmristr); 114 fmd_hdl_strfree(hdl, fmristr); [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_response.c | 80 char fmristr[90]; member in struct:smf_uuid_cache_ent 158 bzero(entp->fmristr, sizeof (entp->fmristr)); 164 if (topo_fmri_str2nvl(thp, entp->fmristr, &svcfmri, 167 entp->fmristr); 174 (void) fmd_repair_asru(hdl, entp->fmristr); 211 swrp_smf_cache_add(fmd_hdl_t *hdl, char *uuid, char *fmristr) argument 261 (void) strncpy(entp->fmristr, fmristr, sizeof (entp->fmristr)); 272 swrp_smf_cache_mark(fmd_hdl_t *hdl, char *uuid, char *fmristr) argument 348 char *fmristr, *uuid; local 379 char *fmristr; local 427 char *fmristr, *shrtfmristr; local [all...] |
H A D | smf_util.c | 43 char *fmristr = NULL; local 50 fmristr = fmd_hdl_strdup(hdl, (const char *)topostr, FMD_SLEEP); 55 return (fmristr); /* caller must fmd_hdl_strfree */
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | fmd.c | 132 nvlist_t *fmristr; local 145 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 149 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 151 nvlist_free(fmristr); 155 *out = fmristr;
|
H A D | legacy_hc.c | 190 nvlist_t *fmristr; local 203 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 207 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 209 nvlist_free(fmristr); 213 *out = fmristr;
|
H A D | zfs.c | 202 nvlist_t *fmristr; local 215 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 219 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 221 nvlist_free(fmristr); 225 *out = fmristr;
|
H A D | mod.c | 335 nvlist_t *fmristr; local 348 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) 350 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 352 nvlist_free(fmristr); 356 *out = fmristr;
|
H A D | pkg.c | 307 nvlist_t *fmristr; local 320 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) 322 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 324 nvlist_free(fmristr); 328 *out = fmristr;
|
H A D | sw.c | 364 nvlist_t *fmristr; local 510 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 515 if (nvlist_add_string(fmristr, "fmri-string", buf) != 0) { 517 nvlist_free(fmristr); 521 *out = fmristr;
|
H A D | svc.c | 170 svc_create_node(topo_mod_t *mod, tnode_t *pnode, char *fmristr) argument 190 len = strlen(fmristr) + 1; 201 fixed[i] = fmristr[j++]; 212 if (topo_node_range_create(mod, pnode, fmristr, 0, 0) < 0) { 218 if ((tn = topo_node_bind(mod, pnode, fmristr, 0, fmri)) == NULL) { 226 if (topo_node_label_set(tn, fmristr, &err) != 0) { 431 nvlist_t *fmristr; local 498 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 503 if (nvlist_add_string(fmristr, "fmri-string", buf) != 0) { 505 nvlist_free(fmristr); [all...] |
H A D | dev.c | 205 nvlist_t *fmristr; local 218 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) 220 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 222 nvlist_free(fmristr); 226 *out = fmristr;
|
H A D | topo_fmri.c | 100 topo_fmri_nvl2str(topo_hdl_t *thp, nvlist_t *fmri, char **fmristr, int *err) argument 122 if ((*fmristr = topo_hdl_strdup(thp, str)) == NULL) 132 topo_fmri_str2nvl(topo_hdl_t *thp, const char *fmristr, nvlist_t **fmri, argument 139 (void) strlcpy(buf, fmristr, sizeof (buf)); 154 if (nvlist_add_string(in, "fmri-string", fmristr) != 0)
|
H A D | topo_mod.c | 627 topo_mod_str2nvl(topo_mod_t *mod, const char *fmristr, nvlist_t **fmri) argument 632 if (topo_fmri_str2nvl(mod->tm_hdl, fmristr, &np, &err) < 0) 646 topo_mod_nvl2str(topo_mod_t *mod, nvlist_t *fmri, char **fmristr) argument 654 if ((*fmristr = topo_mod_strdup(mod, sp)) == NULL) {
|
H A D | hc.c | 611 nvlist_t *fmristr; local 624 if (topo_mod_nvalloc(mod, &fmristr, NV_UNIQUE_NAME) != 0) { 628 if (nvlist_add_string(fmristr, "fmri-string", name) != 0) { 630 nvlist_free(fmristr); 634 *out = fmristr;
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-transport/ |
H A D | disk_transport.c | 120 char *fmristr; local 135 fmristr = NULL; 136 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) == 0 && 137 strstr(fmristr, dmp->dm_sim_search) != 0) 139 topo_hdl_strfree(thp, fmristr);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_meth.c | 170 char *fmristr = NULL; local 181 (void) topo_mod_nvl2str(mod, asru, &fmristr); 183 op, fmristr == NULL ? "unknown fmri" : fmristr, 185 if (fmristr != NULL) 186 topo_mod_strfree(mod, fmristr);
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.c | 437 char *propv, *fmristr = NULL; local 482 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) < 0) { 487 propv = fmristr; 557 if (fmristr != NULL) 558 topo_hdl_strfree(thp, fmristr); 773 const char *fmristr; local 784 if ((fmristr = config_getprop(cresource, pname)) == NULL) { 789 return (fmristr); 800 const char *fmristr; local 805 fmristr [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_subr.c | 491 char *fmristr; local 510 if (fmri != NULL && topo_mod_nvl2str(mod, fmri, &fmristr) == 0) { 511 topo_mod_dprintf(mod, "[%s]: %s => %d (\"%s\")\n", fmristr, 513 topo_mod_strfree(mod, fmristr);
|