Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread_flush_worker - flush all current works on a kthread_worker*@worker: worker to flush* Wait until all currently executing or pending works on @worker are* finished.

Proto:void kthread_flush_worker(struct kthread_worker *worker)

Type:void

Parameter:

TypeParameterName
struct kthread_worker *worker
1160  struct kthread_flush_work fwork = {KTHREAD_WORK_INIT(work, kthread_flush_work_fn), COMPLETION_INITIALIZER_ONSTACK(done), }
1165  kthread_queue_work - queue a kthread_work*@worker: target kthread_worker*@work: kthread_work to queue* Queue @work to work processor @task for async execution. @task* must have been created with kthread_worker_create(). Returns %true
1166  wait_for_completion( & done)
Caller
NameDescribe
kthread_destroy_workerkthread_destroy_worker - destroy a kthread worker*@worker: worker to be destroyed* Flush and destroy @worker. The simple flush is enough because the kthread* worker API is used only in trivial scenarios. There are no multi-step state* machines needed.
sugov_kthread_stop