Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\scatterlist.c Create Date:2022-07-28 06:20:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_miter_get_next_page

Proto:static bool sg_miter_get_next_page(struct sg_mapping_iter *miter)

Type:bool

Parameter:

TypeParameterName
struct sg_mapping_iter *miter
687  If Not remaining bytes on page Then
690  If Not __sg_page_iter_next( & page iterator ) Then Return false
693  sg = sg holding the page
695  offset within page = If page offset within the sg Then 0 Else offset
696  page offset within the sg += offset within page >> PAGE_SHIFT determines the page size
697  offset within page &= PAGE_SIZE - 1
698  remaining bytes on page = offset + length - (page offset within the sg << PAGE_SHIFT determines the page size ) - offset within page
701  remaining bytes on page = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, remaining bytes on page , PAGE_SIZE - offset within page )
705  Return true
Caller
NameDescribe
sg_miter_skipsg_miter_skip - reposition mapping iterator*@miter: sg mapping iter to be skipped*@offset: number of bytes to plus the current location* Description:* Sets the offset of @miter to its current location plus @offset bytes
sg_miter_nextsg_miter_next - proceed mapping iterator to the next mapping*@miter: sg mapping iter to proceed* Description:* Proceeds @miter to the next mapping. @miter should have been started* using sg_miter_start(). On successful return, @miter->page,