Lines Matching +defs:val +defs:service
28 * the service schema. The official version of a svc FMRI has the form:
30 * svc://[scope@][system-fqn]/service[:instance][@contract-id]
32 * Where 'service' is a slash-delimited list of names. Of these fields, the
43 * state (present, unusable, service state, and replaced).
182 * svc:/service[:instance]
426 char *service;
457 * Get the service name.
459 if (nvlist_lookup_string(nvl, FM_FMRI_SVC_NAME, &service) != 0)
477 if (*service == '\0')
480 topo_fmristr_build(&size, buf, buflen, service, "/", NULL);
520 char *str, *loc, val;
581 val = *loc;
585 /* service name */
588 *loc = val;
593 *loc = val;
647 * service state and unusable).
668 * For the "service state" and "unusable" methods svc_get_state goes on
684 * Note that *only* "maintenance" state should map to an unusable service state
685 * or unusable status. That's because a service entering maintenance state
687 * corresponding isolation action from a response agent since the the service
690 * repair fmd does not see the service usable again then the case hangs
692 * further maintenance events for this service will not show up in fmd state
708 scf_value_t *val = NULL;
728 (val = scf_value_create(hdl)) == NULL)
735 * If we fail to get the service due to _DELETED or _NOT_FOUND, then we
778 scf_iter_next_value(iter, val) != 1)
781 if ((len = scf_value_get_astring(val, NULL, 0)) < 0)
785 if (scf_value_get_astring(val, state, len + 1) < 0)
800 scf_value_destroy(val);