Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\mq-deadline.c Create Date:2022-07-28 17:50:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dd_request_merge

Proto:static int dd_request_merge(struct request_queue *q, struct request **rq, struct bio *bio)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct request **rq
struct bio *bio
442  dd = elevator_data
443  sector = bio_end_sector(bio)
446  If Not front_merges Then Return 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  If __rq Then
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  Return ELEVATOR_FRONT_MERGE
459  Return ELEVATOR_NO_MERGE