Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sg_split_phys

Proto:static void sg_split_phys(struct sg_splitter *splitters, const int nb_splits)

Type:void

Parameter:

TypeParameterName
struct sg_splitter *splitters
const intnb_splits
83  When i < nb_splits cycle
84  in_sg = in_sg0
85  out_sg = out_sg
86  When j < nents cycle
87  out_sg = in_sg
88  If Not j Then
89  offset += skip_sg0
90  length -= skip_sg0
91  Else
92  offset = 0
95  sg_dma_len(out_sg) = 0
98  length = length_last_sg
99  sg_mark_end - Mark the end of the scatterlist*@sg: SG entryScatterlist* Description:* Marks the passed in sg entry as the termination point for the sg* table. A call to sg_next() on this entry will return NULL.
Caller
NameDescribe
sg_splitsg_split - split a scatterlist into several scatterlists*@in: the input sg list*@in_mapped_nents: the result of a dma_map_sg(in,