函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_cache_sync

函数原型:void dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction dir)

返回类型:void

参数:

类型参数名称
struct device *dev
void *vaddr
size_tsize
enum dma_data_directiondir
373  ops等于get_dma_ops(dev)
375  BUG_ON(!valid_dma_direction(dir))
377  如果dma_is_direct(ops)则arch_dma_cache_sync(dev, vaddr, size, dir)
379  否则如果cache_synccache_sync(dev, vaddr, size, dir)