函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-27 06:47:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline sector_t blk_rq_pos(const struct request *rq)

返回类型:sector_t

参数:

类型参数名称
const struct request *rq
924  返回: sector cursor
调用者
名称描述
elv_rb_addRB-tree support functions for inserting/lookup/removal of requests* in a sorted RB tree.
elv_rb_find
elv_attempt_insert_mergeAttempt to do an insertion back merge. Only check for the case where* we can append 'rq' to an existing request, so we can throw 'rq' away* afterwards.* Returns true if we merged, false otherwise
print_req_error
blk_dump_rq_flags
bio_attempt_discard_merge
blk_account_io_start
__blk_rq_prep_cloneCopy attributes of the original request to the clone request.* The actual data parts (e.g. ->cmd, ->sense) are not copied.
ll_back_merge_fn
req_attempt_discard_merge
ll_merge_requests_fn
blk_try_req_merge
blk_try_merge
plug_rq_cmp
ioc_rqos_merge
dd_request_merge
bfq_choose_reqLifted from AS - choose which of rq1 and rq2 that is best served now.* We choose the request that is closer to the head right now. Distance* behind the head is penalized and only allowed to a certain extent.
bfq_rq_pos_tree_lookup
bfq_pos_tree_add_moveThe following function is not marked as __cold because it is* actually cold, but for the same performance goal described in the* comments on the likely() at the beginning of* bfq_setup_cooperator()
bfq_find_next_rq
get_sdist
bfq_request_merged
bfq_io_struct_pos
bfqq_find_close
bfq_update_peak_rateUpdate the read/write peak rate (the main quantity used for* auto-tuning, see update_thr_responsiveness_params())
bfq_rq_enqueuedCalled when a new fs request (rq) is added to bfqq. Check if there's* something we should do about it.
blk_rq_zone_no
blk_rq_zone_is_seq
blk_rq_trace_sector
t10_pi_ref_tag
scsi_get_lba