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:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static int pseudo_lock_region_alloc(struct pseudo_lock_region *plr)

Type:int

Parameter:

TypeParameterName
struct pseudo_lock_region *plr
348  ret = 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
349  If ret < 0 Then Return ret
356  If size > Maximum allocatable size Then
357  rdt_last_cmd_puts("Requested region exceeds maximum size\n")
358  ret = -E2BIG
359  Go to out_region
362  kmem = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
363  If Not kmem Then
364  rdt_last_cmd_puts("Unable to allocate memory\n")
365  ret = -ENOMEM
366  Go to out_region
369  ret = 0
370  Go to out
371  out_region :
372  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
373  out :
374  Return ret
Caller
NameDescribe
rdtgroup_pseudo_lock_createdtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked