Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch9: 2device-driver-3 成员变量 avail_idx 是可用环索引 #193

Open
h888866j opened this issue Jul 9, 2023 · 0 comments
Open

ch9: 2device-driver-3 成员变量 avail_idx 是可用环索引 #193

h888866j opened this issue Jul 9, 2023 · 0 comments

Comments

@h888866j
Copy link
Contributor

h888866j commented Jul 9, 2023

virtio_blk块设备驱动程序 - rCore-Tutorial-Book-v3 3.6.0-alpha.1 文档

其中成员变量 free_head 指空闲描述符链表头,初始时所有描述符通过 next 指针依次相连形成空闲链表,成员变量 last_used_idx 是指设备上次已取的已用环元素位置。成员变量 avail_idx 是指设备上次已取的已用环元素位置。

成员变量 avail_idx 是指设备上次已取的已用环元素位置。 已在pr #191 中建议修改成 成员变量 avail_idx 是可用环的索引值。 如果可以,建议将其换成更具有解释性的描述

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant