pub fn sys_mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int
Available on crate feature alloc only.
Expand description

Changes the access protections for the calling process’s memory pages containing any part of the address range in the interval [addr, addr+len-1].
addr must be aligned to a page boundary.

TODO: implement this