Lines Matching defs:fmri
131 nvlist_t *args, *fmri = NULL, *obj = NULL, *site = NULL, *ctxt = NULL;
181 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0 ||
190 err |= nvlist_add_uint8(fmri, FM_VERSION, FM_SW_SCHEME_VERSION);
191 err |= nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_SW);
202 * Add 'object' to the fmri.
205 err |= nvlist_add_nvlist(fmri, FM_FMRI_SW_OBJ, obj);
236 * Add 'site' to the fmri.
239 err |= nvlist_add_nvlist(fmri, FM_FMRI_SW_SITE, site);
275 * Add 'context' to the fmri.
278 err |= nvlist_add_nvlist(fmri, FM_FMRI_SW_CTXT, ctxt);
283 *out = fmri;
285 if (moderr != 0 && fmri)
286 nvlist_free(fmri);
521 if (nvlist_add_string(fmristr, "fmri-string", buf) != 0) {