Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alize newly alloced @pwq which is associated with @wq and @pool

Proto:static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq, struct worker_pool *pool)

Type:void

Parameter:

TypeParameterName
struct pool_workqueue *pwq
struct workqueue_struct *wq
struct worker_pool *pool
3733  BUG_ON((unsignedlong)pwq & WORK_STRUCT_FLAG_MASK)
3735  memset(pwq, 0, size of pwq )
3737  I: the associated pool = pool
3738  I: the owning workqueue = wq
3739  L: flushing color = -1
3740  L: reference count = 1
3741  Initialization list head
3742  Initialization list head
3743  Initialization list head
3744  INIT_WORK( & Release of unbound pwq is punted to system_wq. See put_pwq()* and pwq_unbound_release_workfn() for details. pool_workqueue* itself is also RCU protected so that the first pwq can be* determined without grabbing wq->mutex., Scheduled on system_wq by put_pwq() when an unbound pwq hits zero refcnt* and needs to be destroyed.)
Caller
NameDescribe
alloc_unbound_pwqbtain a pool matching @attr and create a pwq associating the pool and @wq
alloc_and_link_pwqs