summaryrefslogtreecommitdiff
path: root/kernel/virtio_disk.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2022-08-08 11:10:54 -0400
committerRobert Morris <[email protected]>2022-08-08 11:10:54 -0400
commitca6fc549341d30730247792b87edceacf1613834 (patch)
tree0349f9b21300ccf734932c60d1c6f4a079340b24 /kernel/virtio_disk.c
parent84fb6f3dc2bf9d6fea6e21646352f74d063f432f (diff)
downloadxv6-labs-ca6fc549341d30730247792b87edceacf1613834.tar.gz
xv6-labs-ca6fc549341d30730247792b87edceacf1613834.tar.bz2
xv6-labs-ca6fc549341d30730247792b87edceacf1613834.zip
tweak virtio comments
Diffstat (limited to 'kernel/virtio_disk.c')
-rw-r--r--kernel/virtio_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/virtio_disk.c b/kernel/virtio_disk.c
index 249860b..ae6c164 100644
--- a/kernel/virtio_disk.c
+++ b/kernel/virtio_disk.c
@@ -20,20 +20,20 @@
#define R(r) ((volatile uint32 *)(VIRTIO0 + (r)))
static struct disk {
- // the first is a set (not a ring) of DMA descriptors, with which the
+ // a set (not a ring) of DMA descriptors, with which the
// driver tells the device where to read and write individual
// disk operations. there are NUM descriptors.
// most commands consist of a "chain" (a linked list) of a couple of
// these descriptors.
struct virtq_desc *desc;
- // next is a ring in which the driver writes descriptor numbers
+ // a ring in which the driver writes descriptor numbers
// that the driver would like the device to process. it only
// includes the head descriptor of each chain. the ring has
// NUM elements.
struct virtq_avail *avail;
- // finally a ring in which the device writes descriptor numbers that
+ // a ring in which the device writes descriptor numbers that
// the device has finished processing (just the head of each chain).
// there are NUM used ring entries.
struct virtq_used *used;