Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function removes the work from the worker queue

Proto:static bool __kthread_cancel_work(struct kthread_work *work, bool is_dwork, unsigned long *flags)

Type:bool

Parameter:

TypeParameterName
struct kthread_work *work
boolis_dwork
unsigned long *flags
997  If is_dwork Then
998  dwork = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structkthread_delayed_work, work)
1000  worker = worker
1008  Number of canceling calls that are running at the moment. ++
1009  raw_spin_unlock_irqrestore( & lock, * flags)
1010  del_timer_sync( & timer)
1011  raw_spin_lock_irqsave( & lock, * flags)
1012  Number of canceling calls that are running at the moment. --
1019  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
1020  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1021  Return true
1024  Return false
Caller
NameDescribe
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()
__kthread_cancel_work_sync