Function lrs::mem::protect

Change the memory protection of a region.

Syntax

fn protect(range: Range<usize>, protection: MemProtFlags) -> Result<(), Errno>

Arguments

NameDescription
range

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

protection

The new protection.

See also