Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:domain_setup_ctrlval

Proto:static int domain_setup_ctrlval(struct rdt_resource *r, struct rdt_domain *d)

Type:int

Parameter:

TypeParameterName
struct rdt_resource *r
struct rdt_domain *d
488  dc = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
489  If Not dc Then Return -ENOMEM
492  dm = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
493  If Not dm Then
494  free previously allocated memory
495  Return -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  Return 0
Caller
NameDescribe
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