函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dd_bio_merge

函数原型:static bool dd_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
465  q等于@queue: Pointer to the request queue that owns this hardware context.
466  dd等于elevator_data
467  struct request * free = NULL
470  加自旋锁
471  ret等于blk_mq_sched_try_merge(q, bio, nr_segs, & free)
472  自旋锁解锁
474  如果freeblk_mq_free_request(free)
477  返回:ret