Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dtgroup_tasks_assigned - Test if tasks have been assigned to resource group*@r: Resource group* Return: 1 if tasks have been assigned to @r, 0 otherwise

Proto:int rdtgroup_tasks_assigned(struct rdtgroup *r)

Type:int

Parameter:

TypeParameterName
struct rdtgroup *r
600  ret = 0
602  lockdep_assert_held( & Mutex to protect rdtgroup access. )
604  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
605  Careful: this is a double loop, 'break' won't work as expected. (p, t)
606  If type == RDTCTRL_GROUP && closid == closid || type == RDTMON_GROUP && rmid == rmid Then
608  ret = 1
609  Break
612  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
614  Return ret
Caller
NameDescribe
rdtgroup_locksetup_enterdtgroup_locksetup_enter - Resource group enters locksetup mode*@rdtgrp: resource group requested to enter locksetup mode* A resource group enters locksetup mode to reflect that it would be used* to represent a pseudo-locked region and is in the process of