Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:26:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:worker_thread
Proto:static int worker_thread(void *__worker)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | __worker |
| 2355 | pool = A: the associated pool |
| 2358 | set_pf_worker(true) |
| 2359 | woke_up : |
| 2360 | spin_lock_irq( & he pool lock ) |
| 2364 | spin_unlock_irq( & he pool lock ) |
| 2366 | set_pf_worker(false) |
| 2368 | set_task_comm(I: worker task , "kworker/dying") |
| 2369 | ida_simple_remove( & worker IDs for task name , I: worker id ) |
| 2372 | Return 0 |
| 2376 | recheck : |
| 2401 | Do |
| 2406 | L: watchdog timestamp = jiffies |
| 2413 | Else |
| 2420 | sleep : |
| 2430 | spin_unlock_irq( & he pool lock ) |
| 2431 | schedule() |
| 2432 | Go to woke_up |
| 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 |