函数逻辑报告

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:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:amd_threshold_interrupt

函数原型:static void amd_threshold_interrupt(void)

返回类型:void

参数:

1016  struct threshold_block * first_block = NULL, * block = NULL, * tmp = NULL
1017  cpu等于当前cpu ID()
1019 bank小于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(mce_num_banks)循环
1020  如果非per_cpu(bank_map, cpu)按位与1左移bank位的值则继续下一循环
1023  first_block = ( * ({
1023  ({
1023  循环
1023  const void * __vpp_verify = NULL
1023  当0循环
1023  threshold_banks的地址
1023  })
1023  }))[bank]->blocks
1024  如果非first_block则继续下一循环
1031  log_and_reset_block(first_block)
1032  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(block, tmp, & * List of threshold blocks * within a bank., miscj)
1033  log_and_reset_block(block)