函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
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  如果WARN_ON_ONCE(!(hot fields used during command issue, aligned to cacheline & WQ_UNBOUND))则返回
3660  mutex_lock( & protects this wq )
3661  删除不需要重新初始化的列表项
3662  is_last等于链表为空
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  如果is_last
3676  wq_unregister_lockdep(wq)
3677  Exported common interfaces