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 1dcc7dd commit aae0062Copy full SHA for aae0062
vm/devices/user_driver/src/memory.rs
@@ -157,6 +157,9 @@ impl MemoryBlock {
157
}
158
159
/// Returns true if the PFNs are contiguous.
160
+ ///
161
+ /// TODO: Fallback allocations are here for now, but we should eventually
162
+ /// allow the caller to require these. See `DmaClient::allocate_dma_buffer`.
163
pub fn contiguous_pfns(&self) -> bool {
164
for (curr, next) in self.pfns().iter().zip(self.pfns().iter().skip(1)) {
165
if *curr + 1 != *next {
0 commit comments