Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:27:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:start_flush_work
Proto:static bool start_flush_work(struct work_struct *work, struct wq_barrier *barr, bool from_cancel)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct work_struct * | work | |
| struct wq_barrier * | barr | |
| bool | from_cancel |
| 2976 | might_sleep() |
| 2980 | If Not pool Then |
| 2982 | Return false |
| 2985 | spin_lock_irq( & he pool lock ) |
| 2987 | pwq = get_work_pwq(work) |
| 2988 | If pwq Then |
| 2989 | If Value for the false possibility is greater at compile time(I: the associated pool != pool) Then Go to already_gone |
| 2991 | Else |
| 2993 | If Not worker Then Go to already_gone |
| 2995 | pwq = L: current_work's pwq |
| 3001 | spin_unlock_irq( & he pool lock ) |
| 3012 | If Not from_cancel && ( saved_max_active == 1 || rescuer) Then |
| 3014 | lock_map_acquire( & lockdep_map) |
| 3015 | lock_map_release( & lockdep_map) |
| 3018 | Return true |
| 3019 | already_gone : |
| 3020 | spin_unlock_irq( & he pool lock ) |
| 3022 | Return false |
| Name | Describe |
|---|---|
| __flush_work |
| 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 |