aboutsummaryrefslogtreecommitdiff
path: root/include/libvfio-user.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libvfio-user.h')
-rw-r--r--include/libvfio-user.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index a43f38a..f2876a1 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -404,9 +404,9 @@ typedef void (vfu_dma_register_cb_t)(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info);
* This is required if you want to be able to access guest memory directly via
* a mapping.
*
- * The callback should return 0 on success, errno on failure (although
- * unregister should not fail: this will not stop a guest from unregistering the
- * region).
+ * The callback should return 0 on success, -1 with errno set on failure
+ * (although unregister should not fail: this will not stop a guest from
+ * unregistering the region).
*
* @vfu_ctx: the libvfio-user context
* @info: the DMA info