函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfqq_find_close

函数原型:static struct bfq_queue *bfqq_find_close(struct bfq_data *bfqd, struct bfq_queue *bfqq, sector_t sector)

返回类型:struct bfq_queue

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
sector_tsector
2414  root等于rq_pos_tree
2418  如果RB_EMPTY_ROOT(root)则返回:NULL
2425  __bfqq等于bfq_rq_pos_tree_lookup(bfqd, root, sector, & parent, NULL)
2426  如果__bfqq则返回:__bfqq
2434  __bfqq等于rb_entry(parent, structbfq_queue, pos_node)
2435  如果bfq_rq_close_to_sector( fifo isn't expired, next request to serve , true, sector)则返回:__bfqq
2438  如果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 小于sectornode等于rb_next( & quest-position tree member (see bfq_group's @rq_pos_tree) )
2440  否则node等于rb_prev( & quest-position tree member (see bfq_group's @rq_pos_tree) )
2442  如果非node则返回:NULL
2445  __bfqq等于rb_entry(node, structbfq_queue, pos_node)
2446  如果bfq_rq_close_to_sector( fifo isn't expired, next request to serve , true, sector)则返回:__bfqq
2449  返回:NULL
调用者
名称描述
bfq_find_close_cooperator