函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mce_timer_fn

函数原型:static void mce_timer_fn(struct timer_list *t)

返回类型:void

参数:

类型参数名称
struct timer_list *t
1421  cpu_t等于this_cpu_ptr( & mce_timer)
1424  WARN_ON(cpu_t != t)
1426  iv等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(mce_next_interval)
1428  如果mce_available(this_cpu_ptr( & cpu_info))则
1429  Poll for corrected events or events that happened before reset.* Those are just logged through /dev/mcelog.* This is executed in standard interrupt context.* Note: spec recommends to panic for fatal unsignalled* errors here
1431  如果mce_intel_cmci_poll()则
1432  iv等于mce_adjust_timer(iv)
1433  转到:done
1441  如果Notify the user(s) about new machine check events.* Can be called from interrupt context, but not from machine check/NMI* context.iv等于两数取大(iv / 2, (unsignedlong)HZ / 100)
1443  否则iv等于两数取小(iv * 2, round_jiffies_relative(Periodic polling timer for "silent" machine check errors. If the* poller finds an MCE, poll 2x faster. When the poller finds no more* errors, poll 2x slower (up to check_interval seconds). * HZ))
1446  done :
1447  __this_cpu_write(mce_next_interval, iv)
1448  __start_timer(t, iv)