Lines Matching defs:instance

354  * service/instance composition while filling the app_props_t.
511 * instance and the desired state for the enabled bit in the instance's
957 * get_inst_state() gets the state string from an instance, and returns
958 * the SCF_STATE_* constant that coincides with the instance's current state.
975 /* Pull the state property from the instance */
1013 * Sets an instance to be enabled or disabled after reboot, using the
1108 * Create and return a pg from the instance associated with the given handle.
1141 /* Get pg from instance */
1197 smf_refresh_instance(const char *instance)
1199 return (set_inst_action(instance, SCF_PROPERTY_REFRESH));
1203 smf_restart_instance(const char *instance)
1205 return (set_inst_action(instance, SCF_PROPERTY_RESTART));
1209 smf_maintain_instance(const char *instance, int flags)
1212 return (set_inst_action(instance,
1217 return (set_inst_action(instance,
1224 smf_degrade_instance(const char *instance, int flags)
1232 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1247 return (set_inst_action(instance, (flags & SMF_IMMEDIATE) ?
1252 smf_restore_instance(const char *instance)
1258 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1268 ret = set_inst_action(instance, SCF_PROPERTY_MAINT_OFF);
1270 ret = set_inst_action(instance, SCF_PROPERTY_RESTORE);
1280 smf_get_state(const char *instance)
1286 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1304 * Create a scf_simple_handle_t and fill in the instance, snapshot, and
1589 * local service, and every instance of every service.
1607 * property containing the state of the instance,
1609 * be an improperly configured instance.
1650 scf_simple_prop_get(scf_handle_t *hin, const char *instance, const char *pgname,
1670 if ((fmri_buf = assemble_fmri(h, instance, pgname, propname)) == NULL) {
1683 * If the property isn't found in the instance, we grab the
1963 * properties at the instance level, overwriting any duplicate
1964 * properties, in order to provide service/instance composition.
2600 boolean_t instance = B_TRUE;
2614 instance = B_FALSE;
2618 if (!instance) {
2628 if ((instance ? scf_instance_get_pg_composed(i, snap, pgname, pg) :
2768 boolean_t instance = B_TRUE;
2800 instance = B_FALSE;
2803 if ((instance ? scf_instance_get_pg(inst, pgname, pg) :
3025 * scf_simple_prop_get() should find the property on an instance