aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-06-30 15:24:48 +0100
committerGitHub <noreply@github.com>2021-06-30 15:24:48 +0100
commit677a541ca1f42d1f32a0371bbdf32005bdbd871d (patch)
tree3381320b7f4148c1ad6474c3021fc6834b8028bd /include
parent8b4089ad1164ef0d98d6d777de63de2aa25a1d8a (diff)
downloadlibvfio-user-677a541ca1f42d1f32a0371bbdf32005bdbd871d.zip
libvfio-user-677a541ca1f42d1f32a0371bbdf32005bdbd871d.tar.gz
libvfio-user-677a541ca1f42d1f32a0371bbdf32005bdbd871d.tar.bz2
return process request count in vfu_run_ctx() (#574)
Consumers such as SPDK would like to know if any actual work was done. Modify the API to support this. Also, clean up some stale mocking we no longer use. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index cd470a9..75de04e 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -148,7 +148,8 @@ vfu_get_poll_fd(vfu_ctx_t *vfu_ctx);
*
* @vfu_ctx: The libvfio-user context to poll
*
- * @returns 0 on success, -1 on error, with errno set as follows:
+ * @returns the number of requests processed (0 or more); or -1 on error,
+ * with errno set as follows:
*
* EAGAIN/EWOULDBLOCK: no more commands to process
* ENOTCONN: client closed connection, vfu_attach_ctx() should be called again