aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Henderson <william.henderson@nutanix.com>2023-08-10 09:08:09 +0000
committerJohn Levon <john.levon@nutanix.com>2023-09-15 12:59:39 +0100
commit2658f8001a8fd74562a6b2d4d7f42426951481c8 (patch)
treefbf7cf24cd8670acab7cfbfaa7bc6cdb9c945f5c
parent97cec47c30130e2c77eb91c00fcc7d0ad8aa4d05 (diff)
downloadlibvfio-user-2658f8001a8fd74562a6b2d4d7f42426951481c8.zip
libvfio-user-2658f8001a8fd74562a6b2d4d7f42426951481c8.tar.gz
libvfio-user-2658f8001a8fd74562a6b2d4d7f42426951481c8.tar.bz2
fix: read semantics in comment
Signed-off-by: William Henderson <william.henderson@nutanix.com>
-rw-r--r--include/libvfio-user.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index af16e60..93c417c 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -608,8 +608,8 @@ typedef struct {
* `buf`. The function must return the amount of data read or -1 on error,
* setting errno.
*
- * If the function returns any non-negative number less than `count`, this
- * is interpreted to mean that there is no more migration data to read.
+ * If the function returns zero, this is interpreted to mean that there is
+ * no more migration data to read.
*/
ssize_t (*read_data)(vfu_ctx_t *vfu_ctx, void *buf, uint64_t count);