函数逻辑报告

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

函数名称:update_domains

函数原型:int update_domains(struct rdt_resource *r, int closid)

返回类型:int

参数:

类型参数名称
struct rdt_resource *r
intclosid
314  如果非zalloc_cpumask_var( & cpu_mask, GFP_KERNEL)则返回:负ENOMEM
317  low等于closid
318  high等于low加1
319  res等于r
321  mba_sc等于is_mba_sc(r)
323  dc等于如果非mba_scctrl_val否则mbps_val
324  如果have_new_ctrlnew_ctrl不等于dc[closid]则
325  设置CPU信息
326  dc[closid]等于new_ctrl
334  如果pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.mba_sc则转到:done
336  cpu等于get_cpu()
338  如果测试CPU信息rdt_ctrl_update( & msr_param)
341  smp_call_function_many(cpu_mask, rdt_ctrl_update, & msr_param, 1)
342  put_cpu()
344  done :
345  释放CPU掩码
347  返回:0
调用者
名称描述
rdtgroup_schemata_write
rdtgroup_init_allocInitialize the RDT group's allocations.