Lines Matching +defs:val +defs:state
43 * state (present, unusable, service state, and replaced).
520 char *str, *loc, val;
581 val = *loc;
588 *loc = val;
593 *loc = val;
647 * service state and unusable).
668 * For the "service state" and "unusable" methods svc_get_state goes on
669 * to return the instance state as below, and the two methods map that
673 * Instance state with FMD_SERVICE_STATE_* State Unusable
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
688 * is already isolated by virtue of being in maintenance state. Any transition
689 * from maintenance state, even to offline, is considered a repair. If on
691 * around in the "resolved but not all resources back online" state and
692 * further maintenance events for this service will not show up in fmd state
708 scf_value_t *val = NULL;
712 char *state;
728 (val = scf_value_create(hdl)) == NULL)
768 * state of the instance.
778 scf_iter_next_value(iter, val) != 1)
781 if ((len = scf_value_get_astring(val, NULL, 0)) < 0)
784 state = alloca(len + 1);
785 if (scf_value_get_astring(val, state, len + 1) < 0)
788 if (strcmp(state, SCF_STATE_STRING_MAINT) == 0) {
790 } else if (strcmp(state, SCF_STATE_STRING_DEGRADED) == 0) {
800 scf_value_destroy(val);
815 int state;
820 if (svc_get_state(mod, in, B_TRUE, &state) != 0)
826 state != FMD_SERVICE_STATE_UNKNOWN) != 0) {
839 int state;
844 if (svc_get_state(mod, in, B_TRUE, &state) != 0)
850 state == FMD_SERVICE_STATE_UNKNOWN ?
864 int state;
869 if (svc_get_state(mod, in, B_FALSE, &state) != 0)
875 state) != 0) {
888 int state;
893 if (svc_get_state(mod, in, B_FALSE, &state) != 0)
899 (state == FMD_SERVICE_STATE_UNKNOWN ||
900 state == FMD_SERVICE_STATE_UNUSABLE)) != 0) {