参照元†
- struct device *dev
- size_t size
- dma_addr_t *dma_handle
- gfp_t gfp
返り値†
CONFIG_HAS_DMA 無効: include/asm-generic/dma-mapping-broken.h†
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
CONFIG_HAS_DMA 有効: include/asm-generic/dma-mapping-common.h†
static inline void *dma_alloc_noncoherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t gfp)
{
DEFINE_DMA_ATTRS(attrs);
dma_set_attr(DMA_ATTR_NON_CONSISTENT, &attrs);
return dma_alloc_attrs(dev, size, dma_handle, gfp, &attrs);
}
コメント†