MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / Desc

Class Desc

src/device/virtio/virt_queue/split.hpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 * @see virtio-v1.2#2.7.5 The Virtqueue Descriptor Table
79 */
80 struct [[gnu::packed]] Desc {
81 /// Descriptor Table 对齐要求(字节)
82 static constexpr size_t kAlign = 16;
83 /// 缓冲区的客户机物理地址 (little-endian)
84 uint64_t addr;
85 /// 缓冲区长度(字节) (little-endian)
86 uint32_t len;
87 /// 标志位: DescFlags (little-endian)
88 uint16_t flags;
89 /// 下一个描述符的索引(当 flags & kDescFNext 时有效) (little-endian)
90 uint16_t next;
91 };
92
93 /**
94 * @brief Virtqueue Available Ring

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected