Searched refs:fmristr (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dnvlrender.c51 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 Dfmevt_inbound_smf.c78 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 Dsmf_response.c80 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 Dsmf_util.c43 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 Dfmd.c132 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 Dlegacy_hc.c190 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 Dzfs.c202 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 Dmod.c335 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 Dpkg.c307 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 Dsw.c364 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 Dsvc.c170 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 Ddev.c205 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 Dtopo_fmri.c100 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 Dtopo_mod.c627 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 Dhc.c611 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 Ddisk_transport.c120 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 Dpi_meth.c170 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 Dplatform.c437 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 Dchip_subr.c491 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);

Completed in 121 milliseconds