Function report |
Source Code:fs\mbcache.c |
Create Date:2022-07-28 20:29:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__entry_find
Proto:static struct mb_cache_entry *__entry_find(struct mb_cache *cache, struct mb_cache_entry *entry, unsigned int key)
Type:struct mb_cache_entry
Parameter:
Type | Parameter | Name |
---|---|---|
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) |
138 | If entry && Not hlist_bl_unhashed( & Hash table list - protected by hash chain bitlock ) Then node = next |
140 | Else node = hlist_bl_first(head) |
143 | entry = hlist_bl_entry(node, structmb_cache_entry, e_hash_list) |
145 | If Key in hash - stable during lifetime of the entry == key && e_reusable Then |
146 | atomic_inc( & e_refcnt) |
147 | Go to out |
151 | entry = NULL |
152 | out : |
153 | hlist_bl_unlock(head) |
154 | If old_entry Then mb_cache_entry_put(cache, old_entry) |
157 | Return entry |
Name | Describe |
---|---|
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 |
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 |