Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void maybe_create_worker(struct worker_pool *pool)__releases(&pool->lock) __acquires(&pool->lock)

Type:void

Parameter:

TypeParameterName
struct worker_pool *pool
2076  restart :
2077  spin_unlock_irq( & he pool lock )
2080  mod_timer( & L: SOS timer for workers , jiffies + MAYDAY_INITIAL_TIMEOUT)
2082  When (true) cycle
2083  If reate_worker - create a new workqueue worker*@pool: pool the new worker will belong to* Create and start a new worker which is attached to @pool.* CONTEXT:* Might sleep. Does GFP_KERNEL allocations.* Return:* Pointer to the newly created worker. || Not Do we need a new worker? Called from manager. Then Break
2086  schedule_timeout_interruptible(CREATE_COOLDOWN)
2088  If Not Do we need a new worker? Called from manager. Then Break
2092  del_timer_sync( & L: SOS timer for workers )
2093  spin_lock_irq( & he pool lock )
2099  If Do we need a new worker? Called from manager. Then Go to restart
Caller
NameDescribe
manage_workersmanage_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.