pub unsafe extern "C" fn svcCreateMemoryBlock(
    memblock: *mut Handle,
    addr: u32_,
    size: u32_,
    my_perm: MemPerm,
    other_perm: MemPerm
) -> Result
Expand description

Creates a block of shared memory

§Arguments

  • memblock (direction out) - Pointer to store the handle of the block
  • addr - Address of the memory to map, page-aligned. So its alignment must be 0x1000.
  • size - Size of the memory to map, a multiple of 0x1000.
  • my_perm - Memory permissions for the current process
  • other_perm - Memory permissions for the other processes

Note: The shared memory block, and its rights, are destroyed when the handle is closed.