函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\iommu-helper.h Create Date:2022-07-27 08:09:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:iommu_num_pages

函数原型:static inline unsigned long iommu_num_pages(unsigned long addr, unsigned long len, unsigned long io_page_size)

返回类型:unsigned long

参数:

类型参数名称
unsigned longaddr
unsigned longlen
unsigned longio_page_size
37  size等于addr按位与io_page_size减1的值加len
39  返回:DIV_ROUND_UP(size, io_page_size)
调用者
名称描述
dma_map_areaMap a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush.
gart_unmap_pageFree a DMA mapping.
__dma_map_contMap multiple scatterlist entries continuous into the first.
gart_map_sgDMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.