函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mbcache.c Create Date:2022-07-29 11:04:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mb_cache_entry_get - get a cache entry by value (and key)*@cache - cache we work with*@key - key*@value - value

函数原型:struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *cache, unsigned int key, u64 value)

返回类型:struct mb_cache_entry

参数:

类型参数名称
struct mb_cache *cache
unsigned intkey
u64value
205  head等于mb_cache_entry_head(cache, key)
206  hlist_bl_lock(head)
208  如果 Key in hash - stable during lifetime of the entry 恒等于key User provided value - stable during lifetime of the entry 恒等于value
209  atomic_inc( & e_refcnt)
210  转到:out
213  entry = NULL
214  out :
215  hlist_bl_unlock(head)
216  返回:entry