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.
1 parent b9110db commit f0cfe84Copy full SHA for f0cfe84
source/chapter9/2device-driver-2.rst
@@ -478,7 +478,7 @@ virtio驱动程序
478
479
avail.ring[(avail.idx + added++) % qsz] = head;
480
481
-idx总是递增,在模以 ``qsz`` 后才能进行取描述符的操作:
+``idx`` 总是递增。由于上一行的取模操作,我们不必担心 ``idx > qsz`` 时会产生溢出。
482
483
.. code-block:: Rust
484
@@ -535,4 +535,4 @@ idx总是递增,在模以 ``qsz`` 后才能进行取描述符的操作:
535
}
536
...
537
538
-这里给出了virtio设备驱动通过中断来接收设备I/O响应的共性操作过程。如果结合具体的操作系统,还需与操作系统的总体中断处理、同步互斥、进程/线程调度进行结合。
+这里给出了virtio设备驱动通过中断来接收设备I/O响应的共性操作过程。如果结合具体的操作系统,还需与操作系统的总体中断处理、同步互斥、进程/线程调度进行结合。
0 commit comments