Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:manage_workers - manage worker pool*@worker: self* Assume the manager role and manage the worker pool @worker belongs* to. At any given time, there can be only zero or one manager per* pool. The exclusion is handled automatically by this function.

Proto:static bool manage_workers(struct worker *worker)

Type:bool

Parameter:

TypeParameterName
struct worker *worker
2127  pool = A: the associated pool
2129  If X: flags & POOL_MANAGER_ACTIVE Then Return false
2132  X: flags |= POOL_MANAGER_ACTIVE
2133  L: purely informational = worker
2135  maybe_create_worker - create a new worker if necessary*@pool: pool to create a new worker for* Create a new worker for @pool if necessary
2137  L: purely informational = NULL
2138  X: flags &= ~POOL_MANAGER_ACTIVE
2139  wake_up( & wq_manager_wait)
2140  Return true
Caller
NameDescribe
worker_thread