函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:As of now the RMIDs allocation is global.* However we keep track of which packages the RMIDs* are used to optimize the limbo list management.

函数原型:int alloc_rmid(void)

返回类型:int

参数:

153  lockdep_assert_held( & Mutex to protect rdtgroup access. )
155  如果链表为空则返回:如果@rmid_limbo_count count of currently unused but (potentially)* dirty RMIDs.* This counts RMIDs that no one is currently using but that* may have a occupancy value > intel_cqm_threshold. User can change* the threshold occupancy value.则负EBUSY否则负ENOSPC
158  entry等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & @rmid_free_lru A least recently used list of free RMIDs* These RMIDs are guaranteed to have an occupancy less than the* threshold occupancy, structrmid_entry, list)
160  删除链表项
162  返回:rmid
调用者
名称描述
rdtgroup_locksetup_exitdtgroup_locksetup_exit - resource group exist locksetup mode*@rdtgrp: resource group* When a resource group exits locksetup mode the earlier restrictions are* lifted.* Return: 0 on success, <0 on failure
mkdir_rdt_prepare