Function report |
Source Code:lib\sg_split.c |
Create Date:2022-07-28 07:20:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sg_calculate_split
Proto:static int sg_calculate_split(struct scatterlist *in, int nents, int nb_splits, off_t skip, const size_t *sizes, struct sg_splitter *splitters, bool mapped)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct scatterlist * | in | |
| int | nents | |
| int | nb_splits | |
| off_t | skip | |
| const size_t * | sizes | |
| struct sg_splitter * | splitters | |
| bool | mapped |
| 31 | in_sg0 = NULL |
| 32 | nents = 0 |
| 36 | sglen = If mapped Then sg_dma_len(sg) Else length |
| 42 | len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size, sglen - skip) |
| 43 | If Not in_sg0 Then |
| 48 | nents++ |
| 49 | length_last_sg = len |
| 52 | curr++ |
| 55 | len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size, sglen - skip) |
| 59 | nents = 1 |
| 60 | length_last_sg = len |
| 63 | skip = 0 |
| 70 | If Not nb_splits Then Break |
| Name | Describe |
|---|---|
| sg_split | sg_split - split a scatterlist into several scatterlists*@in: the input sg list*@in_mapped_nents: the result of a dma_map_sg(in, |
| 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 |