函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kyber_dispatch_cur_domain

函数原型:static struct request *kyber_dispatch_cur_domain(struct kyber_queue_data *kqd, struct kyber_hctx_data *khd, struct blk_mq_hw_ctx *hctx)

返回类型:struct request

参数:

类型参数名称
struct kyber_queue_data *kqd
struct kyber_hctx_data *khd
struct blk_mq_hw_ctx *hctx
758  rqs等于rqs[cur_domain]
768  rq等于list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(rqs, structrequest, queuelist)
769  如果rq
770  nr等于kyber_get_domain_token(kqd, khd, hctx)
771  如果nr大于等于0则
772  batching自加
775  返回:rq
776  否则
780  否则如果sbitmap_any_bit_set( & kcq_map[cur_domain])则
781  nr等于kyber_get_domain_token(kqd, khd, hctx)
782  如果nr大于等于0则
785  batching自加
788  返回:rq
789  否则
796  返回:NULL
调用者
名称描述
kyber_dispatch_request