函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void kthread_destroy_worker(struct kthread_worker *worker)

返回类型:void

参数:

类型参数名称
struct kthread_worker *worker
1182  task等于task
1183  如果WARN_ON(!task)则返回
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  结束线程的运行
1188  WARN_ON(!链表为空)
1189  释放内存
调用者
名称描述
psi_trigger_destroy