Function report |
Source Code:lib\sg_split.c |
Create Date:2022-07-28 07:20:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sg_split - split a scatterlist into several scatterlists*@in: the input sg list*@in_mapped_nents: the result of a dma_map_sg(in,
Proto:int sg_split(struct scatterlist *in, const int in_mapped_nents, const off_t skip, const int nb_splits, const size_t *split_sizes, struct scatterlist **out, int *out_mapped_nents, gfp_t gfp_mask)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct scatterlist * | in | |
| const int | in_mapped_nents | |
| const off_t | skip | |
| const int | nb_splits | |
| const size_t * | split_sizes | |
| struct scatterlist ** | out | |
| int * | out_mapped_nents | |
| gfp_t | gfp_mask |
| 157 | splitters = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 178 | sg_split_phys(splitters, nb_splits) |
| 179 | If in_mapped_nents Then |
| 180 | ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, split_sizes, splitters, true) |
| 189 | If out_mapped_nents Then out_mapped_nents[i] = nents |
| 194 | Return 0 |
| 196 | err : |
| 200 | Return ret |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |