Function report |
Source Code:lib\lru_cache.c |
Create Date:2022-07-28 07:16:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lc_reset - does a full reset for @lc and the hash table slots.*@lc: the lru cache to operate on* It is roughly the equivalent of re-allocating a fresh lru_cache object,* basically a short cut to lc_destroy(lc); lc = lc_create(...);
Proto:void lc_reset(struct lru_cache *lc)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct lru_cache * | lc |
202 | hits = 0 |
203 | misses = 0 |
204 | starving = 0 |
205 | locked = 0 |
206 | changed = 0 |
209 | memset( nr_elements there , 0, sizeof(structhlist_head) * number of elements (indices) ) |
211 | When i < number of elements (indices) cycle |
212 | e = lc_element[i] |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |