Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct scatterlist *sg_next(struct scatterlist *sg)

Type:struct scatterlist

Parameter:

TypeParameterName
struct scatterlist *sg
25  If sg_is_last(sg) Then Return NULL
28  sg++
29  If Value for the false possibility is greater at compile time(We overload the LSB of the page pointer to indicate whether it's* a valid sg entry, or whether it points to the start of a new scatterlist.* Those low bits are there for everyone! (thanks mason :-)(sg)) Then sg = sg_chain_ptr(sg)
32  Return sg
Caller
NameDescribe
sg_nentssg_nents - return total count of entries in scatterlist*@sg: The scatterlist* Description:* Allows to know how many entries are in sg, taking into acount* chaining as well
sg_nents_for_lensg_nents_for_len - return total count of entries in scatterlist* needed to satisfy the supplied length*@sg: The scatterlist*@len: The total required length* Description:* Determines the number of entries in sg that are required to meet* the supplied
__sg_page_iter_next
__sg_page_iter_dma_next
setup_sgl_buf
sg_split_phys
sg_split_mapped
gart_map_sgDMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.
blk_rq_map_sgmap a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries
blk_rq_map_integrity_sglk_rq_map_integrity_sg - Map integrity metadata into a scatterlist*@q: request queue*@bio: bio with integrity metadata attached*@sglist: target scatterlist* Description: Map the integrity vectors in request into a* scatterlist