]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/DMA-API.txt
include/linux/dma-mapping.h: add dma_zalloc_coherent()
[karo-tx-linux.git] / Documentation / DMA-API.txt
index fe2326906610d15c25b928000d343b7917046bce..66bd97a95f10e18fc9b2a4bff7acb691957cc6a3 100644 (file)
@@ -50,6 +50,13 @@ specify the GFP_ flags (see kmalloc) for the allocation (the
 implementation may choose to ignore flags that affect the location of
 the returned memory, like GFP_DMA).
 
+void *
+dma_zalloc_coherent(struct device *dev, size_t size,
+                            dma_addr_t *dma_handle, gfp_t flag)
+
+Wraps dma_alloc_coherent() and also zeroes the returned memory if the
+allocation attempt succeeded.
+
 void
 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
                           dma_addr_t dma_handle)