We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6adbe3f + f0cfe84 commit 6d53a9aCopy full SHA for 6d53a9a
source/chapter9/2device-driver-2.rst
@@ -478,7 +478,7 @@ virtio驱动程序
478
479
avail.ring[(avail.idx + added++) % qsz] = head;
480
481
-idx总是递增,并在到达 ``qsz`` 后又回到0:
+``idx`` 总是递增。由于上一行的取模操作,我们不必担心 ``idx > qsz`` 时会产生溢出。
482
483
.. code-block:: Rust
484
@@ -535,4 +535,4 @@ idx总是递增,并在到达 ``qsz`` 后又回到0:
535
}
536
...
537
538
-这里给出了virtio设备驱动通过中断来接收设备I/O响应的共性操作过程。如果结合具体的操作系统,还需与操作系统的总体中断处理、同步互斥、进程/线程调度进行结合。
+这里给出了virtio设备驱动通过中断来接收设备I/O响应的共性操作过程。如果结合具体的操作系统,还需与操作系统的总体中断处理、同步互斥、进程/线程调度进行结合。
0 commit comments