Function rustix::mm::mprotect

source ·
pub unsafe fn mprotect(
    ptr: *mut c_void,
    len: usize,
    flags: MprotectFlags,
) -> Result<()>
Expand description

mprotect(ptr, len, flags)—Change the protection flags of a region of memory.

§Safety

Raw pointers and lots of special semantics.

§References