Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:update_domains

Proto:int update_domains(struct rdt_resource *r, int closid)

Type:int

Parameter:

TypeParameterName
struct rdt_resource *r
intclosid
314  If Not zalloc_cpumask_var( & cpu_mask, GFP_KERNEL) Then Return -ENOMEM
317  low = closid
318  high = low + 1
319  res = r
321  mba_sc = is_mba_sc(r)
323  dc = If Not mba_sc Then ctrl_val Else mbps_val
324  If have_new_ctrl && new_ctrl != dc[closid] Then
325  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
326  dc[closid] = new_ctrl
334  If pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. || mba_sc Then Go to done
336  cpu = get_cpu()
338  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then rdt_ctrl_update( & msr_param)
341  smp_call_function_many(cpu_mask, rdt_ctrl_update, & msr_param, 1)
342  put_cpu()
344  done :
345  free_cpumask_var(cpu_mask)
347  Return 0
Caller
NameDescribe
rdtgroup_schemata_write
rdtgroup_init_allocInitialize the RDT group's allocations.