Lines Matching defs:cache
87 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
95 unsigned cache_obj_size = kmem_cache_size(cache);
128 lc->lc_cache = cache;
134 void *p = kmem_cache_alloc(cache, GFP_KERNEL);
151 kmem_cache_free(cache, p - e_off);
172 * @lc: the lru cache to destroy
188 * @lc: the lru cache to operate on
227 * @lc: the lru cache to print statistics of
236 * update of the cache.
302 * lc_del - removes an element from the cache
442 * @lc: the lru cache to operate on
445 * Finds an element in the cache, increases its usage count,
449 * cache. Therefore it is possible that an other element becomes evicted from
450 * the cache. In either case, the user is notified so he is able to e.g. keep
451 * a persistent log of the cache changes, and therefore the objects in use.
455 * The cache was marked %LC_STARVING,
467 * In this case, the cache is marked %LC_DIRTY,
478 * any cache set change.
487 * @lc: the lru cache to operate on
495 * In this case, the cache was already marked %LC_DIRTY.
507 * @lc: the lru cache to operate on
510 * Finds an element in the cache, increases its usage count,
515 * The cache was marked %LC_STARVING,
528 * @lc: the lru cache to operate on
552 * @lc: the lru cache to operate on
576 * @lc: the lru cache to operate on
589 * @lc: the lru cache to operate on
600 * @lc: the lru cache to operate on
630 * lc_dump - Dump a complete LRU cache to seq in textual form.
631 * @lc: the lru cache to operate on