Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:27:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__flush_work

Proto:static bool __flush_work(struct work_struct *work, bool from_cancel)

Type:bool

Parameter:

TypeParameterName
struct work_struct *work
boolfrom_cancel
3029  If WARN_ON(!can kworkers be created yet? ) Then Return false
3032  If WARN_ON(!func) Then Return false
3035  If Not from_cancel Then
3036  lock_map_acquire( & lockdep_map)
3037  lock_map_release( & lockdep_map)
3040  If start_flush_work(work, & barr, from_cancel) Then
3041  wait_for_completion( & done)
3042  destroy_work_on_stack( & work)
3043  Return true
3044  Else
3045  Return false
Caller
NameDescribe
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