Lines Matching defs:inst
71 is_enabled(scf_instance_t *inst)
79 if (scf_instance_get_pg(inst, SCF_PG_GENERAL_OVR, pg) == 0 &&
85 if (scf_instance_get_pg(inst, SCF_PG_GENERAL, pg) == 0 &&
246 inst_has_potential(scf_instance_t *inst, int enabled, int optional, int exclude)
259 if (inst_get_state(inst, state, NULL, NULL) != 0)
287 return (has_potential(inst, B_FALSE));
300 scf_instance_t *inst;
313 if ((inst = scf_instance_create(h)) == NULL ||
318 if (scf_handle_decode_fmri(h, fmri, NULL, NULL, inst, NULL, NULL,
320 enabled = is_enabled(inst);
322 (inst_has_potential(inst, enabled, optional, exclude) != 0);
345 r = scf_iter_next_instance(iter, inst);
357 enabled = is_enabled(inst);
358 r = inst_has_potential(inst, enabled, optional, exclude);
383 scf_instance_destroy(inst);
451 has_potential(scf_instance_t *inst, int restarter_only)
476 if (scf_instance_get_pg_composed(inst, NULL, SCF_PG_GENERAL, pg) != 0)
505 if (scf_instance_get_snapshot(inst, "running", snap) != 0) {
512 if (scf_iter_instance_pgs_typed_composed(iter, inst, snap,