函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\if.c Create Date:2022-07-27 09:05:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mtrr_seq_show

函数原型:static int mtrr_seq_show(struct seq_file *seq, void *offset)

返回类型:int

参数:

类型参数名称
struct seq_file *seq
void *offset
405  max等于num_var_ranges
406 i小于max循环
407  get(i, & base, & size, & type)
408  如果size恒等于0则
409  mtrr_usage_table[i]等于0
410  继续下一循环
412  如果size小于0x100000右移PAGE_SHIFT determines the page size 位则
414  factor等于'K'
415  size左移等于PAGE_SHIFT determines the page size 减10位
416  否则
417  factor等于'M'
418  size右移等于20减PAGE_SHIFT determines the page size
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  返回:0