Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\amd.c Create Date:2022-07-28 08:03:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:store_threshold_limit

Proto:static ssize_t store_threshold_limit(struct threshold_block *b, const char *buf, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct threshold_block *b
const char *buf
size_tsize
1083  If 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 Then Return -EINVAL
1086  If new > THRESHOLD_MAX Then new = THRESHOLD_MAX
1088  If new < 1 Then new = 1
1091  memset( & tr, 0, size of 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  Return size