Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread_flush_work - flush a kthread_work*@work: work to flush* If @work is queued or executing, wait for it to finish execution.

Proto:void kthread_flush_work(struct kthread_work *work)

Type:void

Parameter:

TypeParameterName
struct kthread_work *work
953  struct kthread_flush_work fwork = {KTHREAD_WORK_INIT(work, kthread_flush_work_fn), COMPLETION_INITIALIZER_ONSTACK(done), }
958  bool noop = false
960  worker = worker
961  If Not worker Then Return
964  raw_spin_lock_irq( & lock)
966  WARN_ON_ONCE(worker != worker)
968  If Not list_empty - tests whether a list is empty*@head: the list to test. Then sert @work before @pos in @worker
970  Else if current_work == work Then sert @work before @pos in @worker
973  Else noop = true
976  raw_spin_unlock_irq( & lock)
978  If Not noop Then wait_for_completion( & done)
Caller
NameDescribe
__kthread_cancel_work_sync