函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pwq_activate_delayed_work

函数原型:static void pwq_activate_delayed_work(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
1137  pwq等于get_work_pwq(work)
1139  workqueue_activate_work - called when a work gets activated*@work: pointer to struct work_struct* This event occurs when a queued work is put on the active queue,* which happens immediately after queueing unless @max_active limit* is reached.
1140  如果链表为空L: watchdog timestamp 等于jiffies
1142  move_linked_works - move linked works to a list*@work: start of series of works to be scheduled*@head: target list to append @work to*@nextp: out parameter for nested worklist walking* Schedule linked works starting from @work to @head
1143  __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
1144  L: nr of active works 自加
调用者
名称描述
pwq_activate_first_delayed
try_to_grab_pendingry_to_grab_pending - steal work item from worklist and disable irq*@work: work item to steal*@is_dwork: @work is a delayed_work*@flags: place to store irq state* Try to grab PENDING bit of @work. This function can handle @work in any