函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\kyber-iosched.c Create Date:2022-07-27 19:28:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kyber_dispatch_request

函数原型:static struct request *kyber_dispatch_request(struct blk_mq_hw_ctx *hctx)

返回类型:struct request

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
801  kqd等于elevator_data
802  khd等于@sched_data: Pointer owned by the IO scheduler attached to a request* queue. It's up to the IO scheduler how to use this pointer.
806  加自旋锁
812  如果batching小于Batch size (number of requests we'll dispatch in a row) for each scheduling* domain.[cur_domain]则
813  rq等于kyber_dispatch_cur_domain(kqd, khd, hctx)
814  如果rq则转到:out
827  batching等于0
828 i小于KYBER_NUM_DOMAINS循环
829  如果cur_domain恒等于KYBER_NUM_DOMAINS减1则cur_domain等于0
831  否则cur_domain自加
834  rq等于kyber_dispatch_cur_domain(kqd, khd, hctx)
835  如果rq则转到:out
839  rq = NULL
840  out :
841  自旋锁解锁
842  返回:rq