pub fn map_lazily(
        self,
        mapping: &mut ActiveMapping,
        allocated_size: usize,
        flags: EntryFlags,
    ) -> Result<LazilyMappedVma, MemoryError> {
        debug_assert!(allocated_size % PAGE_SIZE == 0);

        if allocated_size > self.size {
            Err(MemoryError::InvalidRange)
        } else {
            mapping.map_range(self.start, allocated_size, flags)?;

            Ok(LazilyMappedVma {
                vma: self,
                flags,
                allocated_size,
            })
        }
    }
/// Convert to a lazily mapped Vma.
Convert to a lazily mapped Vma.
Convert to a lazily mapped Vma .
pub fn map_lazily(
        self,
        mapping: &mut ActiveMapping,
        allocated_size: usize,
        flags: EntryFlags,
    ) -> Result<LazilyMappedVma, MemoryError> {
        debug_assert!(allocated_size % PAGE_SIZE == 0);
        if allocated_size > self.size {
            Err(MemoryError::InvalidRange)
        } else {
            mapping.map_range(self.start, allocated_size, flags)?;
            Ok(LazilyMappedVma {
                vma: self,
                flags,
                allocated_size,
            })
        }
    }
pub fn map_lazily ( self , mapping : & mut ActiveMapping , allocated_size : usize , flags : EntryFlags , ) -> Result < LazilyMappedVma , MemoryError > { debug_assert ! ( allocated_size PAGE_SIZE 0 ) ; if allocated_size > self . size { Err ( MemoryError :: InvalidRange ) } else { mapping . map_range ( self . start , allocated_size , flags ) ? ; Ok ( LazilyMappedVma { vma : self , flags , allocated_size , } ) } }
Convert to a lazily mapped Vma.
Convert to a lazily mapped Vma .
self
mapping
&mut ActiveMapping
allocated_size
usize
flags
EntryFlags
self
mapping
&mut ActiveMapping
allocated_size
usize
flags
EntryFlags