Lines Matching defs:entity
497 entity_destroy(repcache_entity_t *entity)
499 (void) pthread_mutex_lock(&entity->re_lock);
500 rc_node_clear(&entity->re_node, 0);
501 (void) pthread_mutex_unlock(&entity->re_lock);
503 uu_avl_node_fini(entity, &entity->re_link, entity_pool);
504 (void) pthread_mutex_destroy(&entity->re_lock);
505 rc_node_ptr_free_mem(&entity->re_node);
506 uu_free(entity);
512 repcache_entity_t *entity;
515 entity = uu_avl_find(cp->rc_entities, &id, NULL, NULL);
516 if (entity != NULL) {
517 add_log_ptr(get_log(), RC_PTR_TYPE_ENTITY, id, entity);
519 uu_avl_remove(cp->rc_entities, entity);
523 if (entity != NULL)
524 entity_destroy(entity);
745 * _TYPE_MISMATCH - the entity is already set up with a different type
1094 repcache_entity_t *entity;
1103 entity = entity_find(cp, entityid);
1105 if (entity == NULL)
1108 if (entity->re_changeid == rpr->rpr_changeid) {
1111 result = rc_node_delete(&entity->re_node);
1113 entity->re_changeid = rpr->rpr_changeid;
1116 entity_release(entity);
1177 * _TYPE_MISMATCH - entity cannot have type children