函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dd_request_merge

函数原型:static int dd_request_merge(struct request_queue *q, struct request **rq, struct bio *bio)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct request **rq
struct bio *bio
442  dd等于elevator_data
443  sector等于bio_end_sector(bio)
446  如果非front_merges则返回:ELEVATOR_NO_MERGE
449  __rq等于elv_rb_find( & * requests (deadline_rq s) are present on both sort_list and fifo_list[Return the data direction, READ or WRITE.(bio)], sector)
450  如果__rq
451  BUG_ON(sector != lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire )
454  rq等于__rq
455  返回:ELEVATOR_FRONT_MERGE
459  返回:ELEVATOR_NO_MERGE