函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dmam_alloc_attrs - Managed dma_alloc_attrs()*@dev: Device to allocate non_coherent memory for*@size: Size of allocation*@dma_handle: Out argument for allocated DMA handle*@gfp: Allocation flags*@attrs: Flags in the DMA_ATTR_* namespace.

函数原型:void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
dma_addr_t *dma_handle
gfp_tgfp
unsigned longattrs
87  dr等于devres_alloc(dmam_release, dr的长度, gfp)
88  如果非dr则返回:NULL
91  vaddr等于dma_alloc_attrs(dev, size, dma_handle, gfp, attrs)
92  如果非vaddr
93  devres_free(dr)
94  返回:NULL
97  vaddr等于vaddr
98  dma_handle等于dma_handle
99  size等于size
100  attrs等于attrs
102  devres_add(dev, dr)
104  返回:vaddr
调用者
名称描述
dmam_alloc_coherent