Function ctru_sys::svcMapMemoryBlock
source · pub unsafe extern "C" fn svcMapMemoryBlock(
memblock: Handle,
addr: u32_,
my_perm: MemPerm,
other_perm: MemPerm
) -> Result
Expand description
Maps a block of shared memory
§Arguments
memblock
- Handle of the blockaddr
- Address of the memory to map, page-aligned. So its alignment must be 0x1000.my_perm
- Memory permissions for the current processother_perm
- Memory permissions for the other processes
Note: The shared memory block, and its rights, are destroyed when the handle is closed.