pub unsafe extern "C" fn mprotect(
ptr: *mut u8,
size: usize,
prot_flags: u32,
) -> i32
Expand description
Configures the protections associated with a region of virtual memory
starting at ptr
and going to size
.
Returns 0 on success and an error code on failure.