函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-27 10:26:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void maybe_create_worker(struct worker_pool *pool)__releases(&pool->lock) __acquires(&pool->lock)

返回类型:void

参数:

类型参数名称
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  当(true)循环
2083  如果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.或非Do we need a new worker? Called from manager. 退出
2086  schedule_timeout_interruptible(CREATE_COOLDOWN)
2088  如果非Do we need a new worker? Called from manager. 退出
2092  del_timer_sync( & L: SOS timer for workers )
2093  spin_lock_irq( & he pool lock )
2099  如果Do we need a new worker? Called from manager. 则转到:restart
调用者
名称描述
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.