Lines Matching refs:instp
410 inst_t *instp;
433 instp = safe_malloc(sizeof (*instp));
434 (void) memset(instp, 0, sizeof (*instp));
435 instp->svcname = svcp->svcname;
436 instp->instname = safe_strdup(instname);
437 instp->impact_dependents =
438 uu_list_create(svcptrs, instp, UU_LIST_DEBUG);
439 if (instp->impact_dependents == NULL)
450 instp->svcname, instp->instname, SCF_PG_RESTARTER);
459 (void *)instp->state, sizeof (instp->state), 0) != 0)
463 (void *)instp->next_state, sizeof (instp->next_state), 0) != 0)
467 SCF_TYPE_TIME, &instp->stime, 0, 0) != 0)
473 instp->aux_state = safe_strdup(g_fmri);
475 instp->aux_state = safe_strdup(AUX_STATE_INVALID);
478 SCF_TYPE_INTEGER, &instp->start_method_waitstatus, 0, 0);
483 instp->aux_fmri = safe_strdup(g_fmri);
487 SCF_TYPE_BOOLEAN, &instp->enabled, 0, 0) == 0)
518 instp->enabled = i;
519 instp->temporary = 0;
521 instp->temporary = (instp->enabled != i);
526 instp->restarter = safe_strdup(g_fmri);
528 instp->restarter = SCF_SERVICE_STARTD;
530 if (strcmp(instp->state, SCF_STATE_STRING_OFFLINE) == 0 &&
531 load_dependencies(instp, inst) != 0)
534 uu_list_node_init(instp, &instp->node, insts);
535 r = uu_list_append(svcp->instances, instp);
701 inst_t *instp;
703 for (instp = uu_list_first(svcp->instances);
704 instp != NULL;
705 instp = uu_list_next(svcp->instances, instp)) {
706 if (strcmp(instp->instname, in) == 0)
707 return (instp);