Method lrs::mem_map::MemMap::protect

Change the memory protection of a region.

Syntax

impl MemMap {
    fn protect<R>(&self, range: R, protection: MemProtFlags) -> Result<(), Errno>
        where R: Into<Range<Option<usize>>>,
}

Arguments

NameDescription
range

The range for which the protection holds. Must be page-aligned.

protection

The new protection.

See also