Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check whether a cache bit mask is valid. AMD allows non-contiguous* bitmasks

Proto:bool cbm_validate_amd(char *buf, unsigned int *data, struct rdt_resource *r)

Type:bool

Parameter:

TypeParameterName
char *buf
unsigned int *data
struct rdt_resource *r
175  ret = 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.
176  If ret Then
177  rdt_last_cmd_printf("Non-hex character in the mask %s\n", buf)
178  Return false
181  If val > default_ctrl Then
182  rdt_last_cmd_puts("Mask out of range\n")
183  Return false
186  data = val
187  Return true