pub fn create_vma(&mut self, size: usize) -> Result<Vma, MemoryError> {
        debug_assert!(size % PAGE_SIZE == 0);

        self.alloc_region(size)
            .map(|start| Vma { start, size })
            .ok_or(MemoryError::NoMoreVMA)
    }
/// Creates a new Vma of the requested size.
Creates a new Vma of the requested size.
Creates a new Vma of the requested size .
pub fn create_vma(&mut self, size: usize) -> Result<Vma, MemoryError> {
        debug_assert!(size % PAGE_SIZE == 0);
        self.alloc_region(size)
            .map(|start| Vma { start, size })
            .ok_or(MemoryError::NoMoreVMA)
    }
pub fn create_vma ( & mut self , size : usize ) -> Result < Vma , MemoryError > { debug_assert ! ( size PAGE_SIZE 0 ) ; self . alloc_region ( size ) . map ( | start | Vma { start , size } ) . ok_or ( MemoryError :: NoMoreVMA ) }
Creates a new Vma of the requested size.
Creates a new Vma of the requested size .
&mut self
size
usize
&mut self
size
usize