pub unsafe extern "C" fn svcControlProcessMemory(
    process: Handle,
    addr0: u32_,
    addr1: u32_,
    size: u32_,
    type_: u32_,
    perm: u32_
) -> Result
Expand description

Controls the memory mapping of a process

§Arguments

  • addr0 - The virtual address to map
  • addr1 - The virtual address to be mapped by addr0
  • type - Only operations MEMOP_MAP, MEMOP_UNMAP and MEMOP_PROT are allowed.

This is the only SVC which allows mapping executable memory. Using MEMOP_PROT will change the memory permissions of an already mapped memory.

Note: The pseudo handle for the current process is not supported by this service call. [svcControlProcess]