Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__kthread_queue_delayed_work

Proto:static void __kthread_queue_delayed_work(struct kthread_worker *worker, struct kthread_delayed_work *dwork, unsigned long delay)

Type:void

Parameter:

TypeParameterName
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  If Not delay Then
885  sert @work before @pos in @worker
886  Return
890  kthread_insert_work_sanity_check(worker, work)
892  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
893  worker = worker
894  expires = jiffies + delay
895  add_timer(timer)
Caller
NameDescribe
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()