pub unsafe fn mprotect( ptr: *mut c_void, len: usize, flags: MprotectFlags, ) -> Result<()>
mprotect(ptr, len, flags)—Change the protection flags of a region of memory.
mprotect(ptr, len, flags)
The range of memory starting at ptr and extending for len bytes, rounded up to the applicable page size, must be valid to read with ptr’s provenance.
ptr
len