函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:destroy_worker - destroy a workqueue worker*@worker: worker to be destroyed* Destroy @worker and adjust @pool stats accordingly. The worker should* be idle.* CONTEXT:* spin_lock_irq(pool->lock).

函数原型:static void destroy_worker(struct worker *worker)

返回类型:void

参数:

类型参数名称
struct worker *worker
1963  pool等于A: the associated pool
1965  lockdep_assert_held( & he pool lock )
1968  如果WARN_ON(L: work being processed )或WARN_ON(!链表为空)或WARN_ON(!(X: flags & WORKER_IDLE))则返回
1973  L: total number of workers 自减
1974  L: currently idle workers 自减
1976  删除链表项并重新初始化
1977  X: flags 或等于WORKER_DIE
1978  唤醒中断线程
调用者
名称描述
idle_worker_timeout
put_unbound_poolput_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool