函数逻辑报告

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

函数名称:get_cache_id

函数原型:static int get_cache_id(int cpu, int level)

返回类型:int

参数:

类型参数名称
intcpu
intlevel
351  ci等于get_cpu_cacheinfo(cpu)
354 i小于num_leaves循环
355  如果level恒等于level则返回:id
359  返回:负1
调用者
名称描述
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
domain_remove_cpu