Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:27:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void workqueue_set_max_active(struct workqueue_struct *wq, int max_active)

Type:void

Parameter:

TypeParameterName
struct workqueue_struct *wq
intmax_active
4444  If WARN_ON(hot fields used during command issue, aligned to cacheline & __WQ_ORDERED_EXPLICIT) Then Return
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 )