函数逻辑报告

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

函数名称: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.

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

返回类型:int

参数:

类型参数名称
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  如果ret小于0则返回:ret
356  如果size大于Maximum allocatable size
357  rdt_last_cmd_puts("Requested region exceeds maximum size\n")
358  ret等于负E2BIG
359  转到:out_region
362  kmem等于分配内存并置零
363  如果非kmem
364  rdt_last_cmd_puts("Unable to allocate memory\n")
365  ret等于负ENOMEM
366  转到:out_region
369  ret等于0
370  转到: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  返回:ret
调用者
名称描述
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