Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Scheduled on system_wq by put_pwq() when an unbound pwq hits zero refcnt* and needs to be destroyed.

Proto:static void pwq_unbound_release_workfn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
3651  pwq = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structpool_workqueue, unbound_release_work)
3653  wq = I: the owning workqueue
3654  pool = I: the associated pool
3657  If WARN_ON_ONCE(!(hot fields used during command issue, aligned to cacheline & WQ_UNBOUND)) Then Return
3660  mutex_lock( & protects this wq )
3661  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
3662  is_last = list_empty - tests whether a list is empty*@head: the list to test.
3663  mutex_unlock( & protects this wq )
3665  mutex_lock( & wq_pool_mutex)
3666  put_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool
3667  mutex_unlock( & wq_pool_mutex)
3669  Exported common interfaces
3675  If is_last Then
3676  wq_unregister_lockdep(wq)
3677  Exported common interfaces