Lines Matching refs:cache_policy_
54 * cache_policy_ represents an abstract policy queue. It can be customized by
57 struct cache_policy_ {
61 void (*add_item_func)(struct cache_policy_ *,
63 void (*remove_item_func)(struct cache_policy_ *,
65 void (*update_item_func)(struct cache_policy_ *,
69 struct cache_policy_ *);
71 struct cache_policy_ *);
73 struct cache_policy_ *, struct cache_policy_item_ *);
75 struct cache_policy_ *, struct cache_policy_item_ *);
91 * LFU policy queue "inherited" from cache_policy_.
94 struct cache_policy_ parent_data;
107 * LRU and FIFO policies "inherited" from cache_policy_
110 struct cache_policy_ parent_data;
118 struct cache_policy_ *init_cache_fifo_policy(void);
119 void destroy_cache_fifo_policy(struct cache_policy_ *);
122 struct cache_policy_ *init_cache_lru_policy(void);
123 void destroy_cache_lru_policy(struct cache_policy_ *);
126 struct cache_policy_ *init_cache_lfu_policy(void);
127 void destroy_cache_lfu_policy(struct cache_policy_ *);