函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:bool kthread_queue_work(struct kthread_worker *worker, struct kthread_work *work)

返回类型:bool

参数:

类型参数名称
struct kthread_worker *worker
struct kthread_work *work
821  bool ret = false
824  raw_spin_lock_irqsave( & lock, flags)
825  如果非Returns true when the work could not be queued at the moment.* It happens when it is already pending in a worker list* or when it is being cancelled.
826  sert @work before @pos in @worker
827  ret = true
829  raw_spin_unlock_irqrestore( & lock, flags)
830  返回:ret
调用者
名称描述
kthread_flush_workerkthread_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.
sugov_irq_work