]> Git Repo - linux.git/commitdiff
virtio_ring: fix description of virtqueue_get_buf
authorFelipe Franciosi <[email protected]>
Mon, 14 Nov 2016 14:16:15 +0000 (06:16 -0800)
committerMichael S. Tsirkin <[email protected]>
Thu, 15 Dec 2016 22:13:38 +0000 (00:13 +0200)
The device (not the driver) populates the used ring and includes the len
of how much data was written.

Signed-off-by: Felipe Franciosi <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
drivers/virtio/virtio_ring.c

index d2863c321e93e00fc896ba529bd6a8c6f0ed6acb..409aeaa49246a0edd7c6da07ca38b58c3f876109 100644 (file)
@@ -649,7 +649,7 @@ static inline bool more_used(const struct vring_virtqueue *vq)
  * @vq: the struct virtqueue we're talking about.
  * @len: the length written into the buffer
  *
- * If the driver wrote data into the buffer, @len will be set to the
+ * If the device wrote data into the buffer, @len will be set to the
  * amount written.  This means you don't need to clear the buffer
  * beforehand to ensure there's no data leakage in the case of short
  * writes.
This page took 0.056643 seconds and 4 git commands to generate.