Lines Matching refs:cache_object
41 size_t size = sizeof(struct cache_object);
125 struct cache_object *cache_object_new(struct cache *c, void *ptr)
127 struct cache_object *obj;
151 void cache_object_free(struct cache_object *obj)
159 int cache_object_put(struct cache_object *obj)
169 void cache_object_get(struct cache_object *obj)
174 void cache_object_set_status(struct cache_object *obj, int status)
183 static int __add(struct cache *c, struct cache_object *obj, int id)
208 int cache_add(struct cache *c, struct cache_object *obj, int id)
223 void cache_update(struct cache *c, struct cache_object *obj, int id, void *ptr)
243 static void __del(struct cache *c, struct cache_object *obj)
259 void cache_del(struct cache *c, struct cache_object *obj)
273 struct cache_object *cache_update_force(struct cache *c, void *ptr)
275 struct cache_object *obj;
300 struct cache_object *cache_find(struct cache *c, void *ptr, int *id)
303 return ((struct cache_object *) hashtable_find(c->h, ptr, *id));
306 void *cache_get_extra(struct cache_object *obj)
394 struct cache_object *obj = n;