Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lc_dump - Dump a complete LRU cache to seq in textual form

Proto:void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, void (*detail)(struct seq_file *, struct lc_element *))

Type:void

Parameter:

TypeParameterName
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  When i < nr_elements cycle
647  e = lc_element_by_index*@lc: the lru cache to operate on*@i: the index of the element to return
648  If we want to track a larger set of objects,* it needs to become arch independend u64 != r pending changes Then 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  Else 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  If detail Then detail(seq, e)
656  seq_putc(seq, '\n')