Lines Matching defs:fmri
163 nvlist_t *fmri;
176 * correct the fmri string before we try to convert it to an nvlist.
195 if (topo_mod_str2nvl(mod, fixed, &fmri) < 0) {
206 nvlist_free(fmri);
209 if ((tn = topo_node_bind(mod, pnode, fmristr, 0, fmri)) == NULL) {
212 nvlist_free(fmri);
215 nvlist_free(fmri);
494 if (nvlist_add_string(fmristr, "fmri-string", buf) != 0) {
510 nvlist_t *fmri;
516 if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
522 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0)
537 if (nvlist_add_string(fmri, FM_FMRI_SVC_AUTH_SCOPE, str) != 0) {
556 if (nvlist_add_string(fmri, FM_FMRI_SVC_AUTH_SYSTEM_FQN,
577 if (nvlist_add_string(fmri, FM_FMRI_SVC_NAME, str) != 0) {
596 if (nvlist_add_string(fmri, FM_FMRI_SVC_INSTANCE,
614 if (nvlist_add_string(fmri, FM_FMRI_SVC_CONTRACT_ID,
620 if (nvlist_add_uint8(fmri, FM_VERSION, FM_SVC_SCHEME_VERSION) != 0 ||
621 nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_SVC) != 0)
624 *out = fmri;
628 nvlist_free(fmri);
632 nvlist_free(fmri);
645 * no fmri instance OK
686 svc_get_state(topo_mod_t *mod, nvlist_t *fmri, boolean_t presence_only,
706 if (nvlist_lookup_uint8(fmri, FM_VERSION, &fmversion) != 0 ||
708 nvlist_lookup_string(fmri, FM_FMRI_SVC_NAME, &name) != 0)
737 if (nvlist_lookup_string(fmri, FM_FMRI_SVC_INSTANCE, &instance) != 0) {