函数逻辑报告 |
Source Code:kernel\kthread.c |
Create Date:2022-07-27 10:31:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__kthread_cancel_work_sync
函数原型:static bool __kthread_cancel_work_sync(struct kthread_work *work, bool is_dwork)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kthread_work * | work | |
bool | is_dwork |
1084 | int ret = false |
1089 | raw_spin_lock_irqsave( & lock, flags) |
1091 | WARN_ON_ONCE(worker != worker) |
1095 | 如果current_work不等于work则转到:out_fast |
1103 | raw_spin_unlock_irqrestore( & lock, flags) |
1105 | raw_spin_lock_irqsave( & lock, flags) |
1108 | out_fast : |
1109 | raw_spin_unlock_irqrestore( & lock, flags) |
1110 | out : |
1111 | 返回:ret |
名称 | 描述 |
---|---|
kthread_cancel_work_sync | kthread_cancel_work_sync - cancel a kthread work and wait for it to finish*@work: the kthread work to cancel* Cancel @work and wait for its execution to finish. This function* can be used even if the work re-queues itself. On return from this |
kthread_cancel_delayed_work_sync | kthread_cancel_delayed_work_sync - cancel a kthread delayed work and* wait for it to finish.*@dwork: the kthread delayed work to cancel* This is kthread_cancel_work_sync() for delayed works.* Return: %true if @dwork was pending, %false otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |