Lines Matching defs:instance

352  * service/instance composition while filling the app_props_t.
509 * instance and the desired state for the enabled bit in the instance's
955 * get_inst_state() gets the state string from an instance, and returns
956 * the SCF_STATE_* constant that coincides with the instance's current state.
973 /* Pull the state property from the instance */
1011 * Sets an instance to be enabled or disabled after reboot, using the
1106 * Create and return a pg from the instance associated with the given handle.
1139 /* Get pg from instance */
1195 smf_refresh_instance(const char *instance)
1197 return (set_inst_action(instance, SCF_PROPERTY_REFRESH));
1201 smf_restart_instance(const char *instance)
1203 return (set_inst_action(instance, SCF_PROPERTY_RESTART));
1207 smf_maintain_instance(const char *instance, int flags)
1210 return (set_inst_action(instance,
1215 return (set_inst_action(instance,
1222 smf_degrade_instance(const char *instance, int flags)
1230 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1245 return (set_inst_action(instance, (flags & SMF_IMMEDIATE) ?
1250 smf_restore_instance(const char *instance)
1256 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1266 ret = set_inst_action(instance, SCF_PROPERTY_MAINT_OFF);
1268 ret = set_inst_action(instance, SCF_PROPERTY_RESTORE);
1278 smf_get_state(const char *instance)
1284 if ((prop = scf_simple_prop_get(NULL, instance, SCF_PG_RESTARTER,
1302 * Create a scf_simple_handle_t and fill in the instance, snapshot, and
1587 * local service, and every instance of every service.
1605 * property containing the state of the instance,
1607 * be an improperly configured instance.
1647 scf_prop_get(scf_handle_t *hin, const char *instance, const char *pgname,
1667 if ((fmri_buf = assemble_fmri(h, instance, pgname, propname)) == NULL) {
1681 * If the property isn't found in the instance, we grab the
1730 scf_simple_prop_get(scf_handle_t *hin, const char *instance, const char *pgname,
1747 if ((prop = scf_prop_get(h, instance, pgname, propname)) != NULL) {
1973 * properties at the instance level, overwriting any duplicate
1974 * properties, in order to provide service/instance composition.
2784 boolean_t instance = B_TRUE;
2807 instance = B_FALSE;
2811 if (!instance) {
2821 if ((instance ? scf_instance_get_pg_composed(i, snap, pgname, pg) :
3031 boolean_t instance = B_TRUE;
3047 instance = B_FALSE;
3050 if ((instance ? scf_instance_get_pg(inst, pgname, pg) :
3282 * scf_simple_prop_get() should find the property on an instance
3563 * fmri for the instance whose restarter is to be set. The second is the fmri
3566 * Validate that the restarter fmri is a valid fmri instance.