函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check head of free list for an available worker. If one isn't available,* caller must wake up the wq manager to create one.

函数原型:static bool io_wqe_activate_free_worker(struct io_wqe *wqe)__must_hold(RCU)

返回类型:bool

参数:

类型参数名称
struct io_wqe *wqe
258  n等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(hlist_nulls_first_rcu( & free_list))
259  如果判定指针为空则返回:false
262  worker等于hlist_nulls_entry(n, structio_worker, nulls_node)
263  如果io_worker_get(worker)则
264  唤醒中断线程
265  io_worker_release(worker)
266  返回:true
269  返回:false
调用者
名称描述
io_wqe_wake_workerWe need a worker. If we find a free one, we're good. If not, and we're* below the max number of workers, wake up the manager to create one.