diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-27 09:48:33 -0500 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-28 06:30:23 -0500 |
commit | 3f4d0a9237a2e21486fd72c9801dc26f3b843f4b (patch) | |
tree | c22ffea054080d108237e791df038f29edccffc5 /lib/dma.h | |
parent | 411707f45b662ded88bde78e5675c441bd70a553 (diff) | |
download | libvfio-user-3f4d0a9237a2e21486fd72c9801dc26f3b843f4b.zip libvfio-user-3f4d0a9237a2e21486fd72c9801dc26f3b843f4b.tar.gz libvfio-user-3f4d0a9237a2e21486fd72c9801dc26f3b843f4b.tar.bz2 |
log error messages when failing to remove DMA
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/dma.h')
-rw-r--r-- | lib/dma.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -106,8 +106,8 @@ dma_controller_add_region(lm_ctx_t *ctx, dma_controller_t *dma, int fd, off_t offset); int -dma_controller_remove_region(dma_controller_t *dma, dma_addr_t dma_addr, - size_t size, int fd); +dma_controller_remove_region(lm_ctx_t *ctx, dma_controller_t *dma, + dma_addr_t dma_addr, size_t size, int fd); // Helper for dma_addr_to_sg() slow path. int @@ -157,7 +157,7 @@ void * dma_map_region(dma_memory_region_t *region, int prot, size_t offset, size_t len); -void +int dma_unmap_region(dma_memory_region_t *region, void *virt_addr, size_t len); static inline int |