函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Do we have too many workers and should some go away?

函数原型:static bool too_many_workers(struct worker_pool *pool)

返回类型:bool

参数:

类型参数名称
struct worker_pool *pool
802  managing等于X: flags 按位与POOL_MANAGER_ACTIVE
803  nr_idle等于L: currently idle workers managing
804  nr_busy等于L: total number of workers nr_idle
806  返回:nr_idle大于2且nr_idle减2的差乘MAX_IDLE_WORKERS_RATIO大于等于nr_busy
调用者
名称描述
worker_enter_idleworker_enter_idle - enter idle state*@worker: worker which is entering idle state*@worker is entering idle state. Update stats and idle timer if* necessary.* LOCKING:* spin_lock_irq(pool->lock).
idle_worker_timeout