aboutsummaryrefslogtreecommitdiff
path: root/lib/dma.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-04-14 13:14:13 +0100
committerGitHub <noreply@github.com>2021-04-14 13:14:13 +0100
commit2e50c5667ce8724b0b7963255d3016efbb1f568a (patch)
tree9df7b544d28eafb18be94e03a43a66a347c41ffb /lib/dma.h
parent29dbda6cfcbd4093103f5c032b69ecf109b1eccb (diff)
downloadlibvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.zip
libvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.tar.gz
libvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.tar.bz2
libvfio-user.c: use ERROR_INT() (#433)
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/dma.h')
-rw-r--r--lib/dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma.h b/lib/dma.h
index 861b8d3..eb907e0 100644
--- a/lib/dma.h
+++ b/lib/dma.h
@@ -110,7 +110,7 @@ dma_controller_destroy(dma_controller_t *dma);
/* Registers a new memory region.
* Returns:
* - On success, a non-negative region number
- * - On failure, -errno.
+ * - On failure, -1 with errno set.
*/
MOCK_DECLARE(int, dma_controller_add_region, dma_controller_t *dma,
vfu_dma_addr_t dma_addr, size_t size, int fd, off_t offset,