Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lru_cache.c Create Date:2022-07-28 07:16:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__lc_find

Proto:static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, bool include_changing)

Type:struct lc_element

Parameter:

TypeParameterName
struct lru_cache *lc
unsigned intenr
boolinclude_changing
254  BUG_ON(!lc)
255  BUG_ON(! number of elements (indices) )
260  If r pending changes != enr Then Continue
262  If r pending changes == we want to track a larger set of objects,* it needs to become arch independend u64 || include_changing Then Return e
264  Break
266  Return NULL
Caller
NameDescribe
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