Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wq_worker_sleeping - a worker is going to sleep*@task: task going to sleep* This function is called from schedule() when a busy worker is* going to sleep.

Proto:void wq_worker_sleeping(struct task_struct *task)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
865  worker = kthread_data(task)
873  If X: flags & WORKER_NOT_RUNNING Then Return
876  pool = A: the associated pool
878  If WARN_ON_ONCE(None ) Then Return
881  None = 1
882  spin_lock_irq( & he pool lock )
895  If atomic_dec_and_test( & The current concurrency level. As it's likely to be accessed* from other CPUs during try_to_wake_up(), put it in a separate* cacheline.) && Not list_empty - tests whether a list is empty*@head: the list to test. Then
897  next = Return the first idle worker. Safe with preemption disabled
898  If next Then wake_up_process(I: worker task )
901  spin_unlock_irq( & he pool lock )
Caller
NameDescribe
sched_submit_work