Function report |
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 activity | Download SCCT | Chinese |
Name:mtrr_seq_show
Proto:static int mtrr_seq_show(struct seq_file *seq, void *offset)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct seq_file * | seq | |
void * | offset |
405 | max = num_var_ranges |
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' |
415 | size <<= PAGE_SHIFT determines the page size - 10 |
416 | Else |
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 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |