函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:__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 intenr
boolinclude_changing
254  BUG_ON(!lc)
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_findlc_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_usedlc_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