函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:domain_setup_mon_state

函数原型:static int domain_setup_mon_state(struct rdt_resource *r, struct rdt_domain *d)

返回类型:int

参数:

类型参数名称
struct rdt_resource *r
struct rdt_domain *d
512  如果is_llc_occupancy_enabled()则
513  rmid_busy_llc等于bitmap_zalloc(num_rmid, GFP_KERNEL)
514  如果非rmid_busy_llc则返回:负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  如果is_mbm_total_enabled()则
519  tsize等于mbm_total的长度
520  mbm_total等于分配数组内存并置零
521  如果非mbm_total
523  返回:负ENOMEM
526  如果is_mbm_local_enabled()则
527  tsize等于mbm_local的长度
528  mbm_local等于分配数组内存并置零
529  如果非mbm_local
531  释放内存
532  返回:负ENOMEM
536  如果is_mbm_enabled()则
537  INIT_DELAYED_WORK( & mbm_over, mbm_handle_overflow)
538  mbm_setup_overflow_handler(d, MBM_OVERFLOW_INTERVAL)
541  返回:0
调用者
名称描述
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