函数逻辑报告 |
Source Code:lib\scatterlist.c |
Create Date:2022-07-27 07:17:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__sg_alloc_table_from_pages - Allocate and initialize an sg table from* an array of pages*@sgt: The sg table header to use*@pages: Pointer to an array of page pointers*@n_pages: Number of pages in the pages array*@offset: Offset from start of the first
函数原型:int __sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages, unsigned int n_pages, unsigned int offset, unsigned long size, unsigned int max_segment, gfp_t gfp_mask)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sg_table * | sgt | |
struct page ** | pages | |
unsigned int | n_pages | |
unsigned int | offset | |
unsigned long | size | |
unsigned int | max_segment | |
gfp_t | gfp_mask |
398 | 如果WARN_ON(!max_segment || offset_in_page(max_segment))则返回:负EINVAL |
402 | chunks等于1 |
403 | seg_len等于0 |
406 | 如果seg_len大于等于max_segment或page_to_pfn(pages[i])不等于page_to_pfn(pages[i - 1])加1则 |
414 | 如果此条件成立可能性小(为编译器优化)(ret)则返回:ret |
418 | cur_page等于0 |
423 | seg_len等于0 |
426 | 如果seg_len大于等于max_segment或page_to_pfn(pages[j])不等于page_to_pfn(pages[j - 1])加1则退出 |
435 | size减等于chunk_size |
436 | offset等于0 |
440 | 返回:0 |
名称 | 描述 |
---|---|
sg_alloc_table_from_pages | sg_alloc_table_from_pages - Allocate and initialize an sg table from* an array of pages*@sgt: The sg table header to use*@pages: Pointer to an array of page pointers*@n_pages: Number of pages in the pages array*@offset: Offset from start of the first page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |