函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_block_address

函数原型:static unsigned int get_block_address(unsigned int current_addr, unsigned int low, unsigned int high, unsigned int bank, unsigned int block, unsigned int cpu)

返回类型:unsigned int

参数:

类型参数名称
unsigned intcurrent_addr
unsigned intlow
unsigned inthigh
unsigned intbank
unsigned intblock
unsigned intcpu
494  addr等于0, offset等于0
496  如果bank大于等于per_cpu(mce_num_banks, cpu)或block大于等于NR_BLOCKS则返回:addr
499  如果* Indicates that overflow conditions are not fatal, when set.则返回:smca_get_block_address(bank, block, cpu)
504  :block恒等于0
505  addr等于misc(bank)
506  退出
507  :block恒等于1
508  offset等于low按位与MASK_BLKPTR_LO的值右移21位
509  如果offsetaddr等于MCG_XBLK_ADDRoffset
511  退出
512  默认
513  addr等于current_addr先自加
515  返回:addr
调用者
名称描述
mce_amd_feature_initpu init entry point, called from mce.c with preempt off
allocate_threshold_blocks