函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-27 10:27:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__flush_work

函数原型:static bool __flush_work(struct work_struct *work, bool from_cancel)

返回类型:bool

参数:

类型参数名称
struct work_struct *work
boolfrom_cancel
3029  如果WARN_ON(!can kworkers be created yet? )则返回:false
3032  如果WARN_ON(!func)则返回:false
3035  如果非from_cancel
3036  lock_map_acquire( & lockdep_map)
3037  lock_map_release( & lockdep_map)
3040  如果start_flush_work(work, & barr, from_cancel)则
3041  wait_for_completion( & done)
3042  destroy_work_on_stack( & work)
3043  返回:true
3044  否则
3045  返回:false
调用者
名称描述
flush_worklush_work - wait for a work to finish executing the last queueing instance*@work: the work to flush* Wait until @work has finished execution
__cancel_work_timer