Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread_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.

Proto:void kthread_destroy_worker(struct kthread_worker *worker)

Type:void

Parameter:

TypeParameterName
struct kthread_worker *worker
1182  task = task
1183  If WARN_ON(!task) Then Return
1186  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.
1187  stop a thread
1188  WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
1189  free previously allocated memory
Caller
NameDescribe
psi_trigger_destroy