函数逻辑报告 |
Source Code:lib\sg_split.c |
Create Date:2022-07-27 08:19:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sg_calculate_split
函数原型: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)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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等于如果mapped则sg_dma_len(sg)否则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 | 如果非in_sg0则 |
| 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 |
| 名称 | 描述 |
|---|---|
| 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, |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |