Lines Matching defs:entity

65 /* The colon namespaces in each entity (each followed by a newline). */
975 emsg_entity_not_selected = gettext("An entity is not selected.\n");
1246 * an entity, return SCF_ERROR_CONSTRAINT_VIOLATED. If the entity cannot be
1310 * Create the entity named by fmri. Place a pointer to its libscf handle in
1562 refresh_running_snapshot(void *entity)
1569 r = take_snap(entity, snap_running, snap);
1576 * Refresh entity. If isservice is zero, take entity to be an scf_instance_t *.
1577 * Otherwise take entity to be an scf_service_t * and refresh all of its child
1582 * ECANCELED - entity was deleted
1589 refresh_entity(int isservice, void *entity, const char *fmri,
1604 if (_smf_refresh_instance_i(entity) == 0) {
1621 r = refresh_running_snapshot(entity);
1641 if (scf_iter_service_instances(iter, entity) != 0) {
2757 "Unknown op stored in the service entity\n"));
2822 "Unknown op stored in the instance entity\n"));
3189 * Compares two entity FMRIs. Returns
3193 * -1 - f1 is invalid or not an entity
3194 * -2 - f2 is invalid or not an entity
3234 * entity. If lcbdata->sc_trans is set, assume it's been started on the
3244 * - target is not an entity (error printed)
3395 /* Add the property group to the target entity. */
3454 * ENODEV - the entity containing li_dpts_pg was deleted
3556 * made en masse, and (b) it's ok if the entity doesn't have
4050 * of the entity ient represents (possibly in the running snapshot). If it
4058 * ECANCELED - snpl's entity was deleted
4411 * & the entity (via sc_parent) in case we need to print error
5170 * entity corresponding to ient.
5367 * ENODEV - entity containing lipg has been deleted
5368 * - entity containing running has been deleted
5876 * ENODEV - entity containing snpl was deleted
5877 * - entity containing running was deleted
7907 (void) fprintf(stderr, "%s:%d: Unknown entity state %d.\n",
7919 * - entity was deleted (error printed)
9734 * entities of the service entity, we'll set up a pg_elts structure to
9909 * Given a dependency property group in the tfmri entity (target fmri), return
10054 void *entity;
10077 serr = fmri_to_entity(g_hndl, fmri, &entity, &isservice);
10120 warn(gettext("The entity specified by %s does "
10137 if (entity_get_pg(entity, isservice, exp_str, opg) != 0) {
11239 * Entity selection. If no entity is selected, then the current scope is in
11543 semerr(gettext(":properties is not an entity. Try 'listprop' "
11857 * Entity addition. Creates an empty entity in the current selection.
11918 /* return 1 if the entity has no persistent pgs, else return 0 */
12000 * SCF_ERROR_NONE on success (or if the entity is not found),
12008 void *entity = NULL;
12018 result = fmri_to_entity(g_hndl, fmri, &entity, &isservice);
12043 if (entity_get_pg(entity, isservice, name, pg) != 0) {
12073 * property group of a "dummy" entity (instance or service).
12074 * A "dummy" entity is an entity only present to hold an
12077 * can also delete the entity. If the entity is an instance then
12086 svc = (scf_service_t *)entity;
12094 inst = (scf_instance_t *)entity;
12098 * If the entity is an instance and we've just deleted its last
12101 if (!isservice && entity_has_no_pgs(entity, isservice)) {
12144 /* if the entity has not been deleted, refresh it */
12146 (void) refresh_entity(isservice, entity, fmri, inst, iter,
12162 if (entity != NULL)
12163 entity_destroy(entity, isservice);
12239 warn(gettext("Property group \"%s\" of entity \"%s\" "
12243 "of entity \"%s\" (permission denied).\n"), name,
12676 * Match FMRI to entity.
12689 * operate on the currently selected entity.
12694 * their values for the currently selected entity.
13791 warn(gettext("error, an entity is selected\n"));
15422 /* Clear the properties from the corresponding entity. */
15451 /* Copy the properties to the corresponding entity. */
16299 "entity\n"));