函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:elv_rb_find

函数原型:struct request *elv_rb_find(struct rb_root *root, sector_t sector)

返回类型:struct request

参数:

类型参数名称
struct rb_root *root
sector_tsector
286  n等于rb_node
289 n循环
290  rq等于rb_entry(n, structrequest, rb_node)
292  如果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 n等于rb_left
294  否则如果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 n等于rb_right
296  否则返回:rq
300  返回:NULL
调用者
名称描述
dd_request_merge
bfq_find_rq_fmerge