函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-27 09:51:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Free a DMA mapping.

函数原型:static void gart_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction dir, unsigned long attrs)

返回类型:void

参数:

类型参数名称
struct device *dev
dma_addr_tdma_addr
size_tsize
enum dma_data_directiondir
unsigned longattrs
256  如果WARN_ON_ONCE(dma_addr == DMA_MAPPING_ERROR)则返回
264  如果dma_addr小于GART remapping area (physical) dma_addr大于等于GART remapping area (physical) size of remapping area bytes 则返回
268  iommu_page等于dma_addrGART remapping area (physical) 右移PAGE_SHIFT determines the page size
269  npages等于iommu_num_pages(dma_addr, size, PAGE_SIZE)
270 i小于npages循环
271  Remapping table [iommu_page + i]等于gart_unmapped_entry
273  free_iommu(iommu_page, npages)
调用者
名称描述
gart_unmap_sgWrapper for pci_unmap_single working with scatterlists.
gart_free_coherent a coherent mapping