函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lush_workqueue_prep_pwqs - prepare pwqs for workqueue flushing*@wq: workqueue being flushed*@flush_color: new flush color, < 0 for no-op*@work_color: new work color, < 0 for no-op* Prepare pwqs for workqueue flushing
函数原型:static bool flush_workqueue_prep_pwqs(struct workqueue_struct *wq, int flush_color, int work_color)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct workqueue_struct * | wq | |
| int | flush_color | |
| int | work_color |
| 2719 | bool wait = false |
| 2722 | 如果flush_color大于等于0则 |
| 2723 | WARN_ON_ONCE(atomic_read( & lush in progress )) |
| 2724 | atomic_set( & lush in progress , 1) |
| 2728 | pool等于I: the associated pool |
| 2730 | spin_lock_irq( & he pool lock ) |
| 2732 | 如果flush_color大于等于0则 |
| 2733 | WARN_ON_ONCE(L: flushing color != - 1) |
| 2735 | 如果nr_in_flight[flush_color]则 |
| 2742 | 如果work_color大于等于0则 |
| 2743 | WARN_ON_ONCE(work_color != work_next_color(L: current color )) |
| 2744 | L: current color 等于work_color |
| 2747 | spin_unlock_irq( & he pool lock ) |
| 2750 | 如果flush_color大于等于0且atomic_dec_and_test( & lush in progress )则complete( & lush completion ) |
| 2753 | 返回:wait |
| 名称 | 描述 |
|---|---|
| flush_workqueue | lush_workqueue - ensure that any scheduled work has run to completion.*@wq: workqueue to flush* This function sleeps until all work items which were queued on entry* have finished execution, but it is not livelocked by new incoming ones. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |