Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-merge.c Create Date:2022-07-28 17:05:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_max_segment_size

Proto:static inline unsigned get_max_segment_size(const struct request_queue *q, struct page *start_page, unsigned long offset)

Type:unsigned

Parameter:

TypeParameterName
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  Return 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))
Caller
NameDescribe
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