函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_alloc_coherent

函数原型:static inline void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
dma_addr_t *dma_handle
gfp_tgfp
645  返回:dma_alloc_attrs(dev, size, dma_handle, gfp, (gfp & DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.) ? DMA_ATTR_NO_WARN: This tells the DMA-mapping subsystem to suppress* allocation failure reports (similarly to __GFP_NOWARN). : 0)
调用者
名称描述
pool_alloc_page
pci_alloc_consistent
pci_zalloc_consistent
ib_dma_alloc_coherent_dma_alloc_coherent - Allocate memory and map it for DMA*@dev: The device for which the DMA address is requested*@size: The size of the region to allocate in bytes*@dma_handle: A pointer for returning the DMA address of the region*@flag: memory allocator