Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lc_element_by_index*@lc: the lru cache to operate on*@i: the index of the element to return

Proto:struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i)

Type:struct lc_element

Parameter:

TypeParameterName
struct lru_cache *lc
unsignedi
581  BUG_ON(i >= number of elements (indices) )
582  BUG_ON(lc_element[i] == NULL)
583  BUG_ON(ack "pointer" into lc_cache->element[index],* for paranoia, and for "lc_element_to_index" != i)
584  Return lc_element[i]
Caller
NameDescribe
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.
lc_seq_dump_detailslc_dump - Dump a complete LRU cache to seq in textual form