]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-mapping: add a dma_can_mmap helper
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Aug 2019 10:31:25 +0000 (13:31 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:18 +0000 (11:13 +0200)
commite29ccc188f3dae1cb66f59e10e01e0f150642a54
tree50aefa076cec185f9ccc50c2696fb80d38ceb165
parentf9f3232a7d0ab73a33d11f4056c5823010f03d55
dma-mapping: add a dma_can_mmap helper

Add a helper to check if DMA allocations for a specific device can be
mapped to userspace using dma_mmap_*.

Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h
kernel/dma/mapping.c