函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:workqueue_set_max_active - adjust max_active of a workqueue*@wq: target workqueue*@max_active: new max_active value.* Set max_active of @wq to @max_active.* CONTEXT:* Don't call from IRQ context.

函数原型:void workqueue_set_max_active(struct workqueue_struct *wq, int max_active)

返回类型:void

参数:

类型参数名称
struct workqueue_struct *wq
intmax_active
4444  如果WARN_ON(hot fields used during command issue, aligned to cacheline & __WQ_ORDERED_EXPLICIT)则返回
4447  max_active等于wq_clamp_max_active(max_active, hot fields used during command issue, aligned to cacheline , I: workqueue name )
4449  mutex_lock( & protects this wq )
4451  hot fields used during command issue, aligned to cacheline 与等于__WQ_ORDERED的反
4452  WQ: saved pwq max_active 等于max_active
4454  r_each_pwq - iterate through all pool_workqueues of the specified workqueue*@pwq: iteration cursor*@wq: the target workqueue* This must be called either with wq->mutex held or RCU read locked(pwq, wq)
4455  pwq_adjust_max_active - update a pwq's max_active to the current setting*@pwq: target pool_workqueue* If @pwq isn't freezing, set @pwq->max_active to the associated* workqueue's saved_max_active and activate delayed work items* accordingly
4457  mutex_unlock( & protects this wq )