函数逻辑报告

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

函数名称:get_rdt_alloc_resources

函数原型:static __init bool get_rdt_alloc_resources(void)

返回类型:bool

参数:

837  bool ret = false
839  如果Global boolean for rdt_alloc which is true if any* resource allocation is enabled.则返回:true
842  如果非boot_cpu_has(Resource Director Technology Allocation )则返回:false
845  如果rdt_cpu_has(Cache Allocation Technology L3 )则
846  rdt_get_cache_alloc_cfg(1, & rdt_resources_all[RDT_RESOURCE_L3])
847  如果rdt_cpu_has(Code and Data Prioritization L3 )则rdt_get_cdp_l3_config()
849  ret = true
851  如果rdt_cpu_has(Cache Allocation Technology L2 )则
853  rdt_get_cache_alloc_cfg(2, & rdt_resources_all[RDT_RESOURCE_L2])
854  如果rdt_cpu_has(Code and Data Prioritization L2 )则rdt_get_cdp_l2_config()
856  ret = true
859  如果get_mem_config()则ret = true
862  返回:ret
调用者
名称描述
get_rdt_resources