函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io-wq.c Create Date:2022-07-29 10:55:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called when worker is going to sleep. If there are no workers currently* running and we have work pending, wake up a free one or have the manager* set one up.

函数原型:void io_wq_worker_sleeping(struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
592  worker等于kthread_data - return data value specified on kthread creation*@task: kthread task in question* Return the data value specified when kthread @task was created.* The caller is responsible for ensuring the validity of @task when* calling this function.
593  wqe等于wqe
595  如果非flags按位与IO_WORKER_F_UP的值则返回
597  如果非flags按位与IO_WORKER_F_RUNNING的值则返回
600  flags与等于IO_WORKER_F_RUNNING的反
602  spin_lock_irq( & lock)
603  io_wqe_dec_running(wqe, worker)
604  spin_unlock_irq( & lock)
调用者
名称描述
sched_submit_work