Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\if.c Create Date:2022-07-28 08:05:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mtrr_seq_show

Proto:static int mtrr_seq_show(struct seq_file *seq, void *offset)

Type:int

Parameter:

TypeParameterName
struct seq_file *seq
void *offset
405  max = num_var_ranges
406  When i < max cycle
407  get(i, & base, & size, & type)
408  If size == 0 Then
409  mtrr_usage_table[i] = 0
410  Continue
412  If size < 0x100000 >> PAGE_SHIFT determines the page size Then
414  factor = 'K'
416  Else
417  factor = 'M'
421  seq_printf(seq, "reg%02i: base=0x%06lx000 (%5luMB), size=%5lu%cB, count=%d: %s\n", i, base, base >> (20 - PAGE_SHIFT determines the page size ), size, factor, mtrr_usage_table[i], mtrr_attrib_to_str(type))
426  Return 0