Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void destroy_worker(struct worker *worker)

Type:void

Parameter:

TypeParameterName
struct worker *worker
1963  pool = A: the associated pool
1965  lockdep_assert_held( & he pool lock )
1968  If WARN_ON(L: work being processed ) || WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.) || WARN_ON(!(X: flags & WORKER_IDLE)) Then Return
1973  L: total number of workers --
1974  L: currently idle workers --
1976  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1977  X: flags |= WORKER_DIE
1978  wake_up_process(I: worker task )
Caller
NameDescribe
idle_worker_timeout
put_unbound_poolput_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool