函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:start_flush_work
函数原型:static bool start_flush_work(struct work_struct *work, struct wq_barrier *barr, bool from_cancel)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct work_struct * | work | |
struct wq_barrier * | barr | |
bool | from_cancel |
2976 | might_sleep() |
2980 | 如果非pool则 |
2985 | spin_lock_irq( & he pool lock ) |
2987 | pwq等于get_work_pwq(work) |
2988 | 如果pwq则 |
2989 | 如果此条件成立可能性小(为编译器优化)(I: the associated pool != pool)则转到:already_gone |
2991 | 否则 |
2993 | 如果非worker则转到:already_gone |
2995 | pwq等于L: current_work's pwq |
3001 | spin_unlock_irq( & he pool lock ) |
3012 | 如果非from_cancel且saved_max_active恒等于1或rescuer的值则 |
3014 | lock_map_acquire( & lockdep_map) |
3015 | lock_map_release( & lockdep_map) |
3018 | 返回:true |
3019 | already_gone : |
3020 | spin_unlock_irq( & he pool lock ) |
3022 | 返回:false |
名称 | 描述 |
---|---|
__flush_work |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |