Skip to content

Commit b9110db

Browse files
porter luporter lu
authored andcommitted
idx should always increase
1 parent 373c51e commit b9110db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/chapter9/2device-driver-2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ virtio驱动程序
478478
479479
avail.ring[(avail.idx + added++) % qsz] = head;
480480
481-
idx总是递增,并在到达 ``qsz`` 后又回到0
481+
idx总是递增,在模以 ``qsz`` 后才能进行取描述符的操作
482482

483483
.. code-block:: Rust
484484

0 commit comments

Comments
 (0)