函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kthread_queue_delayed_work

函数原型:static void __kthread_queue_delayed_work(struct kthread_worker *worker, struct kthread_delayed_work *dwork, unsigned long delay)

返回类型:void

参数:

类型参数名称
struct kthread_worker *worker
struct kthread_delayed_work *dwork
unsigned longdelay
873  timer等于timer
874  work等于work
876  WARN_ON_ONCE(function != kthread_delayed_work_timer_fn - callback that queues the associated kthread* delayed work when the timer expires.*@t: pointer to the expired timer* The format of the function is defined by struct timer_list.)
884  如果非delay
885  sert @work before @pos in @worker
886  返回
890  kthread_insert_work_sanity_check(worker, work)
892  添加链表项
893  worker等于worker
894  expires等于jiffiesdelay
895  add_timer(timer)
调用者
名称描述
kthread_queue_delayed_workkthread_queue_delayed_work - queue the associated kthread work* after a delay
kthread_mod_delayed_workkthread_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()