Home
last modified time | relevance | path

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

/linux-4.19.296/include/linux/
Dlru_cache.h176 struct lru_cache { struct
251 extern struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
254 extern void lc_reset(struct lru_cache *lc);
255 extern void lc_destroy(struct lru_cache *lc);
256 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
257 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
259 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
260 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
261 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
262 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
[all …]
/linux-4.19.296/lib/
Dlru_cache.c52 struct lru_cache *lc_ = (lc); \
67 int lc_try_lock(struct lru_cache *lc) in lc_try_lock()
99 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache, in lc_create()
105 struct lru_cache *lc; in lc_create()
172 static void lc_free_by_index(struct lru_cache *lc, unsigned i) in lc_free_by_index()
186 void lc_destroy(struct lru_cache *lc) in lc_destroy()
205 void lc_reset(struct lru_cache *lc) in lc_reset()
241 void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) in lc_seq_printf_stats()
255 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot()
261 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
[all …]
DMakefile176 obj-$(CONFIG_LRU_CACHE) += lru_cache.o
/linux-4.19.296/
DMAINTAINERS4580 F: lib/lru_cache.c