函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lc_dump - Dump a complete LRU cache to seq in textual form

函数原型:void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, void (*detail)(struct seq_file *, struct lc_element *))

返回类型:void

参数:

类型参数名称
struct seq_file *seq
struct lru_cache *lc
char *utext
void (*detail
641  nr_elements等于 number of elements (indices)
645  seq_printf(seq, "\tnn: lc_number (new nr) refcnt %s\n ", utext)
646 i小于nr_elements循环
647  e等于lc_element_by_index*@lc: the lru cache to operate on*@i: the index of the element to return
648  如果 we want to track a larger set of objects,* it needs to become arch independend u64 不等于r pending changes seq_printf(seq, "\t%5d: %6d %8d %6d ", i, we want to track a larger set of objects,* it needs to become arch independend u64 , r pending changes , refcnt)
651  否则seq_printf(seq, "\t%5d: %6d %-8s %6d ", i, we want to track a larger set of objects,* it needs to become arch independend u64 , "-\"-", refcnt)
654  如果detaildetail(seq, e)
656  seq_putc(seq, '\n')