函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:domain_setup_ctrlval

函数原型:static int domain_setup_ctrlval(struct rdt_resource *r, struct rdt_domain *d)

返回类型:int

参数:

类型参数名称
struct rdt_resource *r
struct rdt_domain *d
488  dc等于分配数组内存
489  如果非dc则返回:负ENOMEM
492  dm等于分配数组内存
493  如果非dm
494  释放内存
495  返回:负ENOMEM
498  ctrl_val等于dc
499  mbps_val等于dm
500  setup_default_ctrlval(r, dc, dm)
502  low等于0
503  high等于num_closid
504  msr_update(d, & m, r)
505  返回:0
调用者
名称描述
domain_add_cpudomain_add_cpu - Add a cpu to a resource's domain list.* If an existing domain in the resource r's domain list matches the cpu's* resource id, add the cpu in the domain.* Otherwise, a new domain is allocated and inserted into the right position