Home
last modified time | relevance | path

Searched refs:lru_cache (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/include/linux/
Dlru_cache.h174 struct lru_cache { struct
241 extern struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
243 extern void lc_reset(struct lru_cache *lc);
244 extern void lc_destroy(struct lru_cache *lc);
245 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
246 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
248 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
249 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
250 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
251 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
[all …]
/linux-2.6.39/lib/
Dlru_cache.c52 struct lru_cache *lc_ = (lc); \
68 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache, in lc_create()
73 struct lru_cache *lc; in lc_create()
138 void lc_free_by_index(struct lru_cache *lc, unsigned i) in lc_free_by_index()
152 void lc_destroy(struct lru_cache *lc) in lc_destroy()
171 void lc_reset(struct lru_cache *lc) in lc_reset()
206 size_t lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) in lc_seq_printf_stats()
221 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot()
236 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
251 static struct lc_element *lc_evict(struct lru_cache *lc) in lc_evict()
[all …]
DMakefile104 obj-$(CONFIG_LRU_CACHE) += lru_cache.o
/linux-2.6.39/drivers/block/drbd/
Ddrbd_int.h1066 struct lru_cache *resync;
1100 struct lru_cache *act_log; /* activity log */
Ddrbd_nl.c730 struct lru_cache *n, *t; in drbd_check_al_size()
866 struct lru_cache *resync_lru = NULL; in drbd_nl_disk_conf()
/linux-2.6.39/
DMAINTAINERS2230 F: lib/lru_cache.c