Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:idle_worker_timeout

Proto:static void idle_worker_timeout(struct timer_list *t)

Type:void

Parameter:

TypeParameterName
struct timer_list *t
1983  pool = from_timer(pool, t, idle_timer)
1985  spin_lock_irq( & he pool lock )
1987  When Do we have too many workers and should some go away? cycle
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.(prev, structworker, entry)
1993  expires = L: last active timestamp + IDLE_WORKER_TIMEOUT
1995  If time_before(jiffies, expires) Then
1997  Break
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 )