aboutsummaryrefslogtreecommitdiff
path: root/lib/dma.h
diff options
context:
space:
mode:
authorSwapnil Ingle <swapnil.ingle@nutanix.com>2020-10-01 12:14:07 -0400
committerSwapnil Ingle <swapnil.ingle@nutanix.com>2020-10-05 05:05:41 -0400
commit4ad019145eb7e7420ff1d3f2aebc8ef5b1b33524 (patch)
treeee62a799f2a7d470a0e79bd7c617090369907d0d /lib/dma.h
parentb115b6a87dd8e0c5277dde2fceb5b2a862c3484b (diff)
downloadlibvfio-user-4ad019145eb7e7420ff1d3f2aebc8ef5b1b33524.zip
libvfio-user-4ad019145eb7e7420ff1d3f2aebc8ef5b1b33524.tar.gz
libvfio-user-4ad019145eb7e7420ff1d3f2aebc8ef5b1b33524.tar.bz2
dma: add api to validate dma region
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/dma.h')
-rw-r--r--lib/dma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dma.h b/lib/dma.h
index 8eb6210..1713bc5 100644
--- a/lib/dma.h
+++ b/lib/dma.h
@@ -245,6 +245,10 @@ dma_unmap_addr(dma_controller_t *dma,
dma_unmap_sg(dma, &sg, &iov, 1);
}
+bool
+dma_controller_region_valid(dma_controller_t *dma, dma_addr_t dma_addr,
+ size_t size);
+
#endif /* DMA_DMA_H */
/* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */