函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sync @pwq with the current state of its associated wq and link it

函数原型:static void link_pwq(struct pool_workqueue *pwq)

返回类型:void

参数:

类型参数名称
struct pool_workqueue *pwq
3750  wq等于I: the owning workqueue
3752  lockdep_assert_held( & protects this wq )
3755  如果非链表为空则返回
3759  L: current color 等于WQ: current work color
3762  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
3765  添加RCU保护项
调用者
名称描述
numa_pwq_tbl_installstall @pwq into @wq's numa_pwq_tbl[] for @node and return the old pwq
apply_wqattrs_commitset attrs and install prepared pwqs, @ctx points to old pwqs on return
alloc_and_link_pwqs