Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int alloc_rmid(void)

Type:int

Parameter:Nothing

153  lockdep_assert_held( & Mutex to protect rdtgroup access. )
155  If list_empty - tests whether a list is empty*@head: the list to test. Then Return If @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. Then -EBUSY Else -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  deletes entry from list
162  Return rmid
Caller
NameDescribe
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