Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:domain_setup_mon_state

Proto:static int domain_setup_mon_state(struct rdt_resource *r, struct rdt_domain *d)

Type:int

Parameter:

TypeParameterName
struct rdt_resource *r
struct rdt_domain *d
512  If is_llc_occupancy_enabled() Then
513  rmid_busy_llc = bitmap_zalloc(num_rmid, GFP_KERNEL)
514  If Not rmid_busy_llc Then Return -ENOMEM
516  INIT_DELAYED_WORK( & cqm_limbo, Handler to scan the limbo list and move the RMIDs* to free list whose occupancy < threshold_occupancy.)
518  If is_mbm_total_enabled() Then
519  tsize = size of mbm_total
520  mbm_total = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
521  If Not mbm_total Then
523  Return -ENOMEM
526  If is_mbm_local_enabled() Then
527  tsize = size of mbm_local
528  mbm_local = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
529  If Not mbm_local Then
532  Return -ENOMEM
536  If is_mbm_enabled() Then
537  INIT_DELAYED_WORK( & mbm_over, mbm_handle_overflow)
538  mbm_setup_overflow_handler(d, MBM_OVERFLOW_INTERVAL)
541  Return 0
Caller
NameDescribe
domain_add_cpudomain_add_cpu - Add a cpu to a resource's domain list.* If an existing domain in the resource r's domain list matches the cpu's* resource id, add the cpu in the domain.* Otherwise, a new domain is allocated and inserted into the right position