pub fn translate_queue<'a, M: DriverMem>(
mem: &'a M,
size: u16,
desc: usize,
avail: usize,
used: usize,
) -> Option<QueueMemory<'a>>
Expand description
Helper for constructing a [QueueMemory
]
Takes a queue description, similar to the form of a [ConfigureQueue
]
(fidl_fuchsia_virtualization_hardware::VirtioDeviceRequest::ConfigureQueue), and attempts to
[translate
] each of the ranges to build a [QueueMemory
].