函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:decode_gam_rng_tbl

函数原型:static void __init decode_gam_rng_tbl(unsigned long ptr)

返回类型:void

参数:

类型参数名称
unsigned longptr
1247  gre等于ptr
1248  lgre等于0
1249  index等于0
1250  sock_min等于999999, pnode_min等于99999
1251  sock_max等于负1, pnode_max等于负1
1253  uv_gre_table等于gre
1254  Entry type: GAM_RANGE_TYPE_UNUSED, etc. 不等于End of table 循环
1255  size等于 PA bits 56:26 (UV_GAM_RANGE_SHFT) lgre左移64MB
1257  order等于0
1258  suffix[]等于" KMGTPE"
1259  flag等于' '
1261 size大于9999且order小于suffix的长度循环
1262  size除等于1024
1263  order自加
1267  如果 Entry type: GAM_RANGE_TYPE_UNUSED, etc. 恒等于1或 Entry type: GAM_RANGE_TYPE_UNUSED, etc. 恒等于2则如果adj_blksize(lgre)则
1269  flag等于'*'
1271  如果非index
1272  打印信息("UV: GAM Range Table...\n")
1273  打印信息("UV: # %20s %14s %6s %4s %5s %3s %2s\n", "Range", "", "Size", "Type", "NASID", "SID", "PN")
1275  打印信息("UV: %2d: 0x%014lx-0x%014lx%c %5lu%c %3d %04x %02x %02x\n", index++, (unsignedlong)lgre << 64MB , (unsignedlong) PA bits 56:26 (UV_GAM_RANGE_SHFT) << 64MB , flag, size, suffix[order], Entry type: GAM_RANGE_TYPE_UNUSED, etc. , HNasid , Socket ID, high bits of APIC ID , Index to MMR and GRU spaces )
1283  lgre等于 PA bits 56:26 (UV_GAM_RANGE_SHFT)
1284  如果sock_min大于 Socket ID, high bits of APIC ID sock_min等于 Socket ID, high bits of APIC ID
1286  如果sock_max小于 Socket ID, high bits of APIC ID sock_max等于 Socket ID, high bits of APIC ID
1288  如果pnode_min大于 Index to MMR and GRU spaces pnode_min等于 Index to MMR and GRU spaces
1290  如果pnode_max小于 Index to MMR and GRU spaces pnode_max等于 Index to MMR and GRU spaces
1293  _min_socket等于sock_min
1294  _max_socket等于sock_max
1295  _min_pnode等于pnode_min
1296  _max_pnode等于pnode_max
1297  _gr_table_len等于index
1299  打印信息("UV: GRT: %d entries, sockets(min:%x,max:%x) pnodes(min:%x,max:%x)\n", index, _min_socket, _max_socket, _min_pnode, _max_pnode)
调用者
名称描述
decode_uv_systab