dma-mapping: add a dma_mmap_pages helper
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Jan 2021 13:53:22 +0000 (14:53 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Mar 2021 09:02:31 +0000 (10:02 +0100)
commiteedb0b12d091a21909b5e84d9f3e5e649305bd12
tree82524abc75941a66dedc9f476cd576eebc7ba225
parent1e28eed17697bcf343c6743f0028cc3b5dd88bf0
dma-mapping: add a dma_mmap_pages helper

Add a helper to map memory allocated using dma_alloc_pages into
a user address space, similar to the dma_alloc_attrs function for
coherent allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Tested-by: Ricardo Ribalda <ribalda@chromium.org>
Documentation/core-api/dma-api.rst
include/linux/dma-mapping.h
kernel/dma/mapping.c