函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread_mod_delayed_work - modify delay of or queue a kthread delayed work*@worker: kthread worker to use*@dwork: kthread delayed work to queue*@delay: number of jiffies to wait before queuing* If @dwork is idle, equivalent to kthread_queue_delayed_work()

函数原型:bool kthread_mod_delayed_work(struct kthread_worker *worker, struct kthread_delayed_work *dwork, unsigned long delay)

返回类型:bool

参数:

类型参数名称
struct kthread_worker *worker
struct kthread_delayed_work *dwork
unsigned longdelay
1054  work等于work
1056  int ret = false
1058  raw_spin_lock_irqsave( & lock, flags)
1061  如果非worker则转到:fast_queue
1065  WARN_ON_ONCE(worker != worker)
1068  如果 Number of canceling calls that are running at the moment. 则转到:out
1071  ret等于This function removes the work from the worker queue
1072  fast_queue :
1073  __kthread_queue_delayed_work(worker, dwork, delay)
1074  out :
1075  raw_spin_unlock_irqrestore( & lock, flags)
1076  返回:ret