函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-27 11:35:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:debug_dma_free_coherent

函数原型:void debug_dma_free_coherent(struct device *dev, size_t size, void *virt, dma_addr_t addr)

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
void *virt
dma_addr_taddr
1468  struct dma_debug_entry ref = {type = dma_debug_coherent, dev = dev, offset = offset_in_page(virt), dev_addr = addr, size = size, direction = DMA_BIDIRECTIONAL, }
1478  如果非Determine if an address is within the vmalloc range* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there* is no special casing required.且非virt_addr_valid(virt)则返回
1481  如果Determine if an address is within the vmalloc range* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there* is no special casing required.pfn等于vmalloc_to_pfn(virt)
1483  否则pfn等于page_to_pfn(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(virt))
1486  如果此条件成立可能性小(为编译器优化)(dma_debug_disabled())则返回
1489  check_unmap( & ref)