函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check whether a cache bit mask is valid. AMD allows non-contiguous* bitmasks

函数原型:bool cbm_validate_amd(char *buf, unsigned int *data, struct rdt_resource *r)

返回类型:bool

参数:

类型参数名称
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  如果ret
177  rdt_last_cmd_printf("Non-hex character in the mask %s\n", buf)
178  返回:false
181  如果val大于default_ctrl
182  rdt_last_cmd_puts("Mask out of range\n")
183  返回:false
186  data等于val
187  返回:true