函数逻辑报告

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

函数名称:Check whether MBA bandwidth percentage value is correct. The value is* checked against the minimum and max bandwidth values specified by the* hardware. The allocated bandwidth percentage is rounded to the next* control step available on the hardware.

函数原型:static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)

返回类型:bool

参数:

类型参数名称
char *buf
unsigned long *data
struct rdt_resource *r
85  如果非delay_linear
86  rdt_last_cmd_puts("No support for non-linear MB domains\n")
87  返回:false
90  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.
91  如果ret
92  rdt_last_cmd_printf("Non-decimal digit in MB value %s\n", buf)
93  返回:false
96  如果bw小于min_bwbw大于default_ctrl的值且非is_mba_sc(r)则
98  rdt_last_cmd_printf("MB value %ld out of range [%d,%d]\n", bw, min_bw, default_ctrl)
100  返回:false
103  data等于undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(bw, (unsignedlong)bw_gran)
104  返回:true
调用者
名称描述
parse_bw_intel