From 677a541ca1f42d1f32a0371bbdf32005bdbd871d Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 30 Jun 2021 15:24:48 +0100 Subject: 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 Reviewed-by: Thanos Makatos --- include/libvfio-user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.1