Lines Matching defs:inst
70 static scf_instance_t *inst = NULL;
133 ((inst = scf_instance_create(rep_handle)) == NULL) ||
161 scf_instance_destroy(inst);
162 inst = NULL;
350 if (scf_handle_decode_fmri(rep_handle, inst_fmri, NULL, NULL, inst,
358 if (scf_instance_get_pg(inst, PG_NAME_INSTANCE_STATE, pg) < 0) {
361 if (scf_instance_add_pg(inst, PG_NAME_INSTANCE_STATE,
640 add_remove_contract(instance_t *inst, boolean_t add, ctid_t ctid)
656 if (gen_filenms_from_fmri(inst->fmri, "ctid", genfmri_filename,
684 if (add_rep_val(inst->start_ctids, ctid) != 0) {
689 remove_rep_val(inst->start_ctids, ctid);
692 if ((repval_ret = repvals_to_file(inst->fmri, "ctid",
693 inst->start_ctids)) != 0) {
720 iterate_repository_contracts(instance_t *inst, int sig)
735 for (spval = uu_list_first(inst->start_ctids); spval != NULL;
736 spval = uu_list_next(inst->start_ctids, spval)) {
741 inst->fmri, strerror(errno));
751 if (gen_filenms_from_fmri(inst->fmri, "ctid", genfmri_filename,
771 * contract fails (inst->start_ctids).
785 (add_rep_val(inst->start_ctids, tval) == -1)) {
807 inst->fmri) != 0) {
813 remove_rep_val(inst->start_ctids, spval->val);
823 empty_rep_val_list(inst->start_ctids);