函数逻辑报告

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:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Handler to scan the limbo list and move the RMIDs* to free list whose occupancy < threshold_occupancy.

函数原型:void cqm_handle_limbo(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
472  delay等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
473  cpu等于当前cpu ID()
477  mutex_lock( & Mutex to protect rdtgroup access. )
479  r等于rdt_resources_all[RDT_RESOURCE_L3]
480  d等于get_domain_from_cpu(cpu, r)
482  如果非d
483  pr_warn_once("Failure to get domain for limbo worker\n")
484  转到:out_unlock
487  Check the RMIDs that are marked as busy for this domain. If the* reported LLC occupancy is below the threshold clear the busy bit and* decrement the count. If the busy count gets to zero on an RMID, we* free the RMID
489  如果has_busy_rmid(r, d)则schedule_delayed_work_on - queue work in global workqueue on CPU after delay*@cpu: cpu to use*@dwork: job to be done*@delay: number of jiffies to wait* After waiting for a given time this puts a job in the kernel-global* workqueue on the specified CPU.
492  out_unlock :
493  mutex_unlock( & Mutex to protect rdtgroup access. )