Change the memory protection of a region.
impl MemMap {
fn protect<R>(&self, range: R, protection: MemProtFlags) -> Result<(), Errno>
where R: Into<Range<Option<usize>>>,
}| Name | Description |
|---|---|
| range | The range for which the protection holds. Must be page-aligned. |
| protection | The new protection. |