函数逻辑报告 |
Source Code:lib\lru_cache.c |
Create Date:2022-07-27 08:15:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__lc_find
函数原型:static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, bool include_changing)
返回类型:struct lc_element
参数:
类型 | 参数 | 名称 |
---|---|---|
struct lru_cache * | lc | |
unsigned int | enr | |
bool | include_changing |
255 | BUG_ON(! number of elements (indices) ) |
260 | 如果r pending changes 不等于enr则继续下一循环 |
262 | 如果r pending changes 恒等于 we want to track a larger set of objects,* it needs to become arch independend u64 或include_changing则返回:e |
264 | 退出 |
266 | 返回:NULL |
名称 | 描述 |
---|---|
lc_find | lc_find - find element by label, if present in the hash table*@lc: The lru_cache object*@enr: element number* Returns the pointer to an element, if the element with the requested* "label" or element number is present in the hash table, |
lc_is_used | lc_is_used - find element by label*@lc: The lru_cache object*@enr: element number* Returns true, if the element with the requested "label" or element number is* present in the hash table, and is used (refcnt > 0) |
__lc_get |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |