Function lrs::syscall::mprotect

Change the memory protection of a region.

Syntax

fn mprotect(addr: usize, len: usize, protection: i32) -> i32

Arguments

NameDescription
addr

The start of the region.

len

The length of the region.

protection

The new protection.

See also