函数逻辑报告 |
Source Code:kernel\dma\debug.c |
Create Date:2022-07-27 11:35:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:debug_dma_unmap_sg
函数原型:void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, int dir)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
struct scatterlist * | sglist | |
int | nelems | |
int | dir |
1402 | mapped_ents等于0 |
1404 | 如果此条件成立可能性小(为编译器优化)(dma_debug_disabled())则返回 |
1409 | struct dma_debug_entry ref = {type = dma_debug_sg, dev = dev, pfn = page_to_pfn(sg_page(s)), offset = offset, dev_addr = These macros should be used after a dma_map_sg call has been done* to get bus addresses of each of the SG entries and their lengths(s), size = sg_dma_len(s), direction = dir, sg_call_ents = nelems, } |
1420 | 如果mapped_ents且i大于等于mapped_ents则退出 |
1423 | 如果非i则mapped_ents等于get_nr_mapped_entries(dev, & ref) |
1426 | check_unmap( & ref) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |