函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_max_segment_size

函数原型:static inline unsigned get_max_segment_size(const struct request_queue *q, struct page *start_page, unsigned long offset)

返回类型:unsigned

参数:

类型参数名称
const struct request_queue *q
struct page *start_page
unsigned longoffset
164  mask等于queue_segment_boundary(q)
166  offset等于mask按位与Change "struct page" to physical address.(start_page)加offset
172  返回:min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(mask - offset + 1, (unsignedlong)queue_max_segment_size(q))
调用者
名称描述
bvec_split_segsvec_split_segs - verify whether or not a bvec should be split in the middle*@q: [in] request queue associated with the bio associated with @bv*@bv: [in] bvec to examine*@nsegs: [in,out] Number of segments in the bio being built
blk_bvec_map_sg