dma_alloc_from_coherent(9)

dma_alloc_from_coherent9

Try to allocate memory from the per-device coherent area

Usage

int dma_alloc_from_coherent(struct device * dev, ssize_t size, dma_addr_t * dma_handle, void ** ret);

Arguments

dev

device from which we allocate memory

size

size of requested memory area

dma_handle

This will be filled with the correct dma handle

ret

This pointer will be filled with the virtual address to allocated area.

Overview

This function should be only called from per-arch dma_alloc_coherent to support allocation from per-device coherent memory pools.

Returns 0 if dma_alloc_coherent should continue with allocating from generic memory areas, or !0 if dma_alloc_coherent should return ret.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.