函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_alloc_wc

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

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
dma_addr_t *dma_addr
gfp_tgfp
781  attrs等于DMA_ATTR_WRITE_COMBINE: Specifies that writes to the mapping may be* buffered to improve performance.
783  如果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.attrs或等于DMA_ATTR_NO_WARN: This tells the DMA-mapping subsystem to suppress* allocation failure reports (similarly to __GFP_NOWARN).
786  返回:dma_alloc_attrs(dev, size, dma_addr, gfp, attrs)