函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-27 09:13:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pseudo_lock_region_init - Initialize pseudo-lock region information*@plr: pseudo-lock region* Called after user provided a schemata to be pseudo-locked. From the* schemata the &struct pseudo_lock_region is on entry already initialized

函数原型:static int pseudo_lock_region_init(struct pseudo_lock_region *plr)

返回类型:int

参数:

类型参数名称
struct pseudo_lock_region *plr
282  cpu等于Uniprocessor. Assume all masks are "1".
284  如果非cpu_online(cpu)则
285  rdt_last_cmd_printf("CPU %u associated with cache not online\n", cpu)
287  ret等于负ENODEV
288  转到:out_region
291  ci等于get_cpu_cacheinfo(cpu)
293  size等于dtgroup_cbm_to_size - Translate CBM to size in bytes*@r: RDT resource to which @d belongs.*@d: RDT domain instance.*@cbm: bitmask for which the size should be computed.* The bitmask provided associated with the RDT domain instance @d will be
295 i小于num_leaves循环
296  如果level恒等于cache_level
298  返回:0
302  ret等于负1
303  rdt_last_cmd_puts("Unable to determine cache line size\n")
304  out_region :
305  pseudo_lock_region_clear - Reset pseudo-lock region data*@plr: pseudo-lock region* All content of the pseudo-locked region is reset - any memory allocated* freed.* Return: void
306  返回:ret
调用者
名称描述
pseudo_lock_region_allocpseudo_lock_region_alloc - Allocate kernel memory that will be pseudo-locked*@plr: pseudo-lock region* Initialize the details required to set up the pseudo-locked region and* allocate the contiguous memory that will be pseudo-locked to the cache.