Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int pseudo_lock_region_init(struct pseudo_lock_region *plr)

Type:int

Parameter:

TypeParameterName
struct pseudo_lock_region *plr
282  cpu = Uniprocessor. Assume all masks are "1".
284  If Not cpu_online(cpu) Then
285  rdt_last_cmd_printf("CPU %u associated with cache not online\n", cpu)
287  ret = -ENODEV
288  Go to 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  When i < num_leaves cycle
296  If level == cache_level Then
298  Return 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  Return ret
Caller
NameDescribe
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.