函数逻辑报告

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

函数名称:store_threshold_limit

函数原型:static ssize_t store_threshold_limit(struct threshold_block *b, const char *buf, size_t size)

返回类型:ssize_t

参数:

类型参数名称
struct threshold_block *b
const char *buf
size_tsize
1083  如果kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.小于0则返回:负EINVAL
1086  如果new大于THRESHOLD_MAXnew等于THRESHOLD_MAX
1088  如果new小于1则new等于1
1091  memset( & tr, 0, tr的长度)
1092  old_limit等于* Value upon which threshold * interrupt is generated.
1093  * Value upon which threshold * interrupt is generated.等于new
1094  b等于b
1096  smp_call_function_single( CPU which controls MCA bank , Reprogram MCx_MISC MSR behind this threshold bank. , & tr, 1)
1098  返回:size