函数逻辑报告 |
Source Code:lib\lru_cache.c |
Create Date:2022-07-27 08:15:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:重置锁和哈希表
函数原型:void lc_reset(struct lru_cache *lc)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct lru_cache * | lc |
197 | 初始化链表头 |
198 | 初始化链表头 |
199 | 初始化链表头 |
200 | 初始化链表头 |
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 | 以i小于 number of elements (indices) 循环 |
212 | e等于lc_element[i] |
218 | we want to track a larger set of objects,* it needs to become arch independend u64 等于special label when on free list |
220 | 添加链表项 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |