函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lru_cache.c Create Date:2022-07-27 08:15:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lc_element_by_index*@lc: the lru cache to operate on*@i: the index of the element to return

函数原型:struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i)

返回类型:struct lc_element

参数:

类型参数名称
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  返回:lc_element[i]
调用者
名称描述
lc_set设置关联索引
lc_seq_dump_detailslc_dump - Dump a complete LRU cache to seq in textual form