函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:workqueue_congested - test whether a workqueue is congested*@cpu: CPU in question*@wq: target workqueue* Test whether @wq's cpu workqueue for @cpu is congested. There is* no synchronization around this function and the test result is

函数原型:bool workqueue_congested(int cpu, struct workqueue_struct *wq)

返回类型:bool

参数:

类型参数名称
intcpu
struct workqueue_struct *wq
4515  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
4516  禁止抢占()
4518  如果cpu恒等于WORK_CPU_UNBOUNDcpu等于当前cpu ID()
4521  如果非hot fields used during command issue, aligned to cacheline 按位与WQ_UNBOUND的值则pwq等于per_cpu_ptr(I: per-cpu pwqs , cpu)
4523  否则pwq等于bound_pwq_by_node - return the unbound pool_workqueue for the given node*@wq: the target workqueue*@node: the node ID* This must be called with any of wq_pool_mutex, wq->mutex or RCU* read locked
4526  ret等于非链表为空
4527  禁用抢占和中断()
4528  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
4530  返回:ret