Lines Matching refs:fmri
81 "[-R root] [-m method] [-s scheme] [fmri]\n", g_pname);
118 else if (strcmp(tstr, "fmri") == 0)
128 print_node(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl, const char *fmri)
132 (void) printf("%s\n", (char *)fmri);
185 nvlist_t *fmri, **hcl;
190 TOPO_PROP_RESOURCE, &fmri, &err) < 0) {
191 (void) fprintf(stderr, "%s: failed to get fmri for %s=%d: %s\n",
197 if (nvlist_lookup_nvlist_array(fmri, FM_FMRI_HC_LIST, &hcl, &n) != 0) {
201 nvlist_free(fmri);
216 nvlist_free(fmri);
233 nvlist_free(fmri);
281 case TOPO_TYPE_FMRI: tstr = "fmri"; break;
287 case TOPO_TYPE_FMRI_ARRAY: tstr = "fmri[]"; break;
402 char *fmri;
404 if (topo_fmri_nvl2str(thp, val, &fmri, &err) != 0) {
410 if (!opt_V && strlen(fmri) > 48) {
411 (void) snprintf(buf, 48, "%s", fmri);
415 (void) printf(" %s", fmri);
418 topo_hdl_strfree(thp, fmri);
596 set_prop(topo_hdl_t *thp, tnode_t *node, nvlist_t *fmri, struct prop_args *pp)
715 if ((ret = topo_fmri_setprop(thp, fmri, pp->group, nvl,
738 if ((ret = topo_fmri_getprop(thp, fmri, pp->group, pp->prop,