Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Need to wake up a worker? Called from anything but currently* running workers.* Note that, because unbound workers never contribute to nr_running, this* function will always return %true for unbound pools as long as the* worklist isn't empty.

Proto:static bool need_more_worker(struct worker_pool *pool)

Type:bool

Parameter:

TypeParameterName
struct worker_pool *pool
777  Return Not list_empty - tests whether a list is empty*@head: the list to test. && Policy functions. These define the policies on how the global worker* pools are managed. Unless noted otherwise, these functions assume that* they're being called with pool->lock held.
Caller
NameDescribe
need_to_create_workerDo we need a new worker? Called from manager.
process_one_workprocess_one_work - process single work*@worker: self*@work: work to process* Process @work
worker_thread
rescuer_threadscuer_thread - the rescuer thread function*@__rescuer: self* Workqueue rescuer thread function