函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kyber_bio_merge

函数原型:static bool kyber_bio_merge(struct blk_mq_hw_ctx *hctx, struct bio *bio, unsigned int nr_segs)

返回类型:bool

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct bio *bio
unsigned intnr_segs
568  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.
569  ctx等于This assumes per-cpu software queueing queues. They could be per-node* as well, for instance. For now this is hardcoded as-is. Note that we don't* care about preemption, since we know the ctx's are persistent. This does
570  kcq等于kcqs[index_hw[@type: HCTX_TYPE_* flags. Type of hardware queue. ]]
571  sched_domain等于kyber_sched_domain( bottom bits req flags, * top bits REQ_OP. Use * accessors.)
572  rq_list等于rq_list[sched_domain]
575  加自旋锁
576  merged等于Iterate list of requests and see if we can merge this bio with any* of them.
577  自旋锁解锁
579  返回:merged