Function linux_api::mman::mprotect_raw

source ·
pub unsafe fn mprotect_raw(
    addr: kernel_ulong_t,
    length: kernel_size_t,
    prot: kernel_ulong_t,
) -> Result<(), Errno>
Expand description

Make the mprotect syscall. See mprotect(2).

Signature from SYSCALL_DEFINE2(mprotect, ..., in linux’s mm/mprotect.c.

§Safety

See mprotect(2).