函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:elv_merge

函数原型:enum elv_merge elv_merge(struct request_queue *q, struct request **req, struct bio *bio)

返回类型:enum elv_merge

参数:

类型参数名称
struct request_queue *q
struct request **req
struct bio *bio
307  e等于elevator
316  如果blk_queue_nomerges(q)或非bio_mergeable(bio)则返回:ELEVATOR_NO_MERGE
322  如果last_mergean we safely merge with this request?
323  ret等于blk_try_merge(last_merge, bio)
325  如果ret不等于ELEVATOR_NO_MERGE
326  req等于last_merge
327  返回:ret
331  如果blk_queue_noxmerges(q)则返回:ELEVATOR_NO_MERGE
337  __rq等于elv_rqhash_find(q, device address in 512 byte sectors )
338  如果__rqan we safely merge with this request?
339  req等于__rq
340  返回:ELEVATOR_BACK_MERGE
343  如果request_merge则返回:request_merge(q, req, bio)
346  返回:ELEVATOR_NO_MERGE
调用者
名称描述
blk_mq_sched_try_merge