函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:44:40
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_timeout_work

函数原型:static void blk_mq_timeout_work(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
898  q等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structrequest_queue, timeout_work)
900  next等于0
917  如果非percpu_ref_tryget - try to increment a percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless its count already reached zero.* Returns %true on success; %false on failure.则返回
920  lk_mq_queue_tag_busy_iter - iterate over all requests with a driver tag*@q: Request queue to examine
922  如果next不等于0则
923  mod_timer - modify a timer's timeout*@timer: the timer to be modified*@expires: new timeout in jiffies* mod_timer() is a more efficient way to update the expire field of an* active timer (if the timer is inactive it will be activated)* mod_timer(timer,
924  否则
933  如果blk_mq_hw_queue_mapped(hctx)则blk_mq_tag_idle(hctx)
937  blk_queue_exit(q)