函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:idle_worker_timeout

函数原型:static void idle_worker_timeout(struct timer_list *t)

返回类型:void

参数:

类型参数名称
struct timer_list *t
1983  pool等于from_timer(pool, t, idle_timer)
1985  spin_lock_irq( & he pool lock )
1987 Do we have too many workers and should some go away? 循环
1992  worker等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表前项, structworker, entry)
1993  expires等于L: last active timestamp IDLE_WORKER_TIMEOUT
1995  如果time_before(jiffies, expires)则
1997  退出
2000  destroy_worker - destroy a workqueue worker*@worker: worker to be destroyed* Destroy @worker and adjust @pool stats accordingly. The worker should* be idle.* CONTEXT:* spin_lock_irq(pool->lock).
2003  spin_unlock_irq( & he pool lock )