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_page_iter_dma_next

Proto:bool __sg_page_iter_dma_next(struct sg_dma_page_iter *dma_iter)

Type:bool

Parameter:

TypeParameterName
struct sg_dma_page_iter *dma_iter
643  piter = base
645  If Not maining sg entries || Not sg holding the page Then Return false
648  page offset within the sg += r pages to advance at the* next step
649  r pages to advance at the* next step = 1
651  When page offset within the sg >= sg_dma_page_count(sg holding the page ) cycle
652  page offset within the sg -= sg_dma_page_count(sg holding the page )
653  sg holding the page = sg_next - return the next scatterlist entry in a list*@sg: The current sg entry* Description:* Usually the next entry will be @sg@ + 1, but if this sg element is part* of a chained scatterlist, it could jump to the start of a new* scatterlist array.
654  If Not --maining sg entries || Not sg holding the page Then Return false
658  Return true