Function linux_api::mman::mprotect

source ·
pub unsafe fn mprotect(
    addr: *mut c_void,
    length: usize,
    prot: ProtFlags,
) -> Result<(), Errno>
Expand description

Make the mprotect syscall, with a thin layer of type-safety over mprotect_raw. See mprotect(2).

§Safety

See mprotect(2).