Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:26:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static void worker_detach_from_pool(struct worker *worker)

Type:void

Parameter:

TypeParameterName
struct worker *worker
1870  pool = A: the associated pool
1871  struct completion * detach_completion = NULL
1873  mutex_lock( & wq_pool_attach_mutex)
1875  deletes entry from list
1876  A: the associated pool = NULL
1878  If list_empty - tests whether a list is empty*@head: the list to test. Then detach_completion = all workers detached
1880  mutex_unlock( & wq_pool_attach_mutex)
1883  X: flags &= ~(WORKER_UNBOUND | WORKER_REBOUND)
1885  If detach_completion Then complete(detach_completion)
Caller
NameDescribe
worker_thread
rescuer_threadscuer_thread - the rescuer thread function*@__rescuer: self* Workqueue rescuer thread function