函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:worker_detach_from_pool() - detach a worker from its pool*@worker: worker which is attached to its pool* Undo the attaching which had been done in worker_attach_to_pool(). The* caller worker shouldn't access to the pool after detached except it has

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

返回类型:void

参数:

类型参数名称
struct worker *worker
1870  pool等于A: the associated pool
1871  struct completion * detach_completion = NULL
1873  mutex_lock( & wq_pool_attach_mutex)
1875  删除链表项
1876  A: the associated pool = NULL
1878  如果链表为空detach_completion等于all workers detached
1880  mutex_unlock( & wq_pool_attach_mutex)
1883  X: flags 与等于WORKER_UNBOUND按位或WORKER_REBOUND的值的反
1885  如果detach_completioncomplete(detach_completion)
调用者
名称描述
worker_thread
rescuer_threadscuer_thread - the rescuer thread function*@__rescuer: self* Workqueue rescuer thread function