OpenAMP Library  353
vring_desc Struct Reference

VirtIO ring descriptors. More...

#include <virtio_ring.h>

Data Fields

uint64_t addr
 Address (guest-physical) More...
 
uint32_t len
 Length. More...
 
uint16_t flags
 Flags relevant to the descriptors. More...
 
uint16_t next
 We chain unused descriptors via this, too. More...
 

Detailed Description

VirtIO ring descriptors.

The descriptor table refers to the buffers the driver is using for the device. addr is a physical address, and the buffers can be chained via next. Each descriptor describes a buffer which is read-only for the device (“device-readable”) or write-only for the device (“device-writable”), but a chain of descriptors can contain both device-readable and device-writable buffers.

Field Documentation

◆ addr

uint64_t vring_desc::addr

Address (guest-physical)

◆ flags

uint16_t vring_desc::flags

Flags relevant to the descriptors.

◆ len

uint32_t vring_desc::len

Length.

◆ next

uint16_t vring_desc::next

We chain unused descriptors via this, too.


The documentation for this struct was generated from the following file: