Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:26:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:destroy_worker - destroy a workqueue worker*@worker: worker to be destroyed* Destroy @worker and adjust @pool stats accordingly. The worker should* be idle.* CONTEXT:* spin_lock_irq(pool->lock).
Proto:static void destroy_worker(struct worker *worker)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct worker * | worker |
| 1963 | pool = A: the associated pool |
| 1965 | lockdep_assert_held( & he pool lock ) |
| 1968 | If WARN_ON(L: work being processed ) || WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.) || WARN_ON(!(X: flags & WORKER_IDLE)) Then Return |
| 1973 | L: total number of workers -- |
| 1974 | L: currently idle workers -- |
| 1977 | X: flags |= WORKER_DIE |
| 1978 | wake_up_process(I: worker task ) |
| Name | Describe |
|---|---|
| idle_worker_timeout | |
| put_unbound_pool | put_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool |
| 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 |