| Function report | 
| Source Code: kernel\workqueue.c | Create Date:2022-07-28 09:26:27 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:worker_enter_idle - enter idle state*@worker: worker which is entering idle state*@worker is entering idle state. Update stats and idle timer if* necessary.* LOCKING:* spin_lock_irq(pool->lock).
Proto:static void worker_enter_idle(struct worker *worker)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct worker * | worker | 
| 1762 | pool = A: the associated pool | 
| 1764 | If WARN_ON_ONCE(X: flags & WORKER_IDLE) || WARN_ON_ONCE(!list_empty - tests whether a list is empty*@head: the list to test. && (next || pprev)) Then Return | 
| 1770 | X: flags |= WORKER_IDLE | 
| 1771 | L: currently idle workers ++ | 
| 1772 | L: last active timestamp = jiffies | 
| Name | Describe | 
|---|---|
| create_worker | 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. | 
| worker_thread | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |