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_hash_slot

Proto:static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)

Type:struct hlist_head

Parameter:

TypeParameterName
struct lru_cache *lc
unsigned intenr
245  Return nr_elements there + enr % number of elements (indices)
Caller
NameDescribe
__lc_find
lc_prepare_for_change
lc_setlc_set - associate index with label*@lc: the lru cache to operate on*@enr: the label to set*@index: the element index to associate label with.* Used to initialize the active set to some previously recorded state.