函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_can_mmap - check if a given device supports dma_mmap_**@dev: device to check* Returns %true if @dev supports dma_mmap_coherent() and dma_mmap_attrs() to* map DMA allocations to userspace.

函数原型:bool dma_can_mmap(struct device *dev)

返回类型:bool

参数:

类型参数名称
struct device *dev
207  ops等于get_dma_ops(dev)
209  如果dma_is_direct(ops)则返回:dma_direct_can_mmap(dev)
211  返回:mmap != NULL