Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-28 16:57:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:elv_rb_find

Proto:struct request *elv_rb_find(struct rb_root *root, sector_t sector)

Type:struct request

Parameter:

TypeParameterName
struct rb_root *root
sector_tsector
286  n = rb_node
289  When n cycle
290  rq = rb_entry(n, structrequest, rb_node)
292  If 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 Then n = rb_left
294  Else if 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 Then n = rb_right
296  Else Return rq
300  Return NULL
Caller
NameDescribe
dd_request_merge
bfq_find_rq_fmerge