函数逻辑报告 |
Source Code:fs\mbcache.c |
Create Date:2022-07-29 11:04:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__entry_find
函数原型:static struct mb_cache_entry *__entry_find(struct mb_cache *cache, struct mb_cache_entry *entry, unsigned int key)
返回类型:struct mb_cache_entry
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mb_cache * | cache | |
struct mb_cache_entry * | entry | |
unsigned int | key |
136 | head等于mb_cache_entry_head(cache, key) |
137 | hlist_bl_lock(head) |
140 | 否则node等于hlist_bl_first(head) |
143 | entry等于hlist_bl_entry(node, structmb_cache_entry, e_hash_list) |
146 | atomic_inc( & e_refcnt) |
147 | 转到:out |
151 | entry = NULL |
152 | out : |
153 | hlist_bl_unlock(head) |
154 | 如果old_entry则mb_cache_entry_put(cache, old_entry) |
157 | 返回:entry |
名称 | 描述 |
---|---|
mb_cache_entry_find_first | mb_cache_entry_find_first - find the first reusable entry with the given key*@cache: cache where we should search*@key: key to look for* Search in @cache for a reusable entry with key @key. Grabs reference to the |
mb_cache_entry_find_next | mb_cache_entry_find_next - find next reusable entry with the same key*@cache: cache where we should search*@entry: entry to start search from* Finds next reusable entry in the hash chain which has the same key as @entry |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |