函数逻辑报告

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

函数名称:Read one cache bit mask (hex). Check that it is valid for the current* resource type.

函数原型:int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r, struct rdt_domain *d)

返回类型:int

参数:

类型参数名称
struct rdt_parse_data *data
struct rdt_resource *r
struct rdt_domain *d
197  rdtgrp等于rdtgrp
200  如果have_new_ctrl
201  rdt_last_cmd_printf("Duplicate domain %d\n", id)
202  返回:负EINVAL
209  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUPrdtgroup_pseudo_locked_in_hierarchy(d)则
211  rdt_last_cmd_puts("Pseudo-locked region in hierarchy\n")
212  返回:负EINVAL
215  如果非cbm_validate(buf, & cbm_val, r)则返回:负EINVAL
218  如果mode恒等于RDT_MODE_EXCLUSIVEmode恒等于RDT_MODE_SHAREABLE的值且rdtgroup_cbm_overlaps_pseudo_locked(d, cbm_val)则
221  rdt_last_cmd_puts("CBM overlaps with pseudo-locked region\n")
222  返回:负EINVAL
229  如果dtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs
230  rdt_last_cmd_puts("Overlaps with exclusive group\n")
231  返回:负EINVAL
234  如果dtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs
235  如果mode恒等于RDT_MODE_EXCLUSIVEmode恒等于RDT_MODE_PSEUDO_LOCKSETUP
237  rdt_last_cmd_puts("Overlaps with other group\n")
238  返回:负EINVAL
242  new_ctrl等于cbm_val
243  have_new_ctrl = true
245  返回:0