Result shmemUnmap(SharedMemory *s)
Unmaps a shared memory object.
void shmemLoadRemote(SharedMemory *s, Handle handle, size_t size, Permission perm)
Loads a shared memory object coming from a remote process.
Result shmemMap(SharedMemory *s)
Maps a shared memory object.
Result shmemCreate(SharedMemory *s, size_t size, Permission local_perm, Permission remote_perm)
Creates a shared memory object.
Result shmemClose(SharedMemory *s)
Frees up resources used by a shared memory object, unmapping and closing handles, etc.
static void * shmemGetAddr(SharedMemory *s)
Retrieves the mapped address of a shared memory object.
Definition: shmem.h:58
Shared memory information structure.
Definition: shmem.h:12
size_t size
Size of the shared memory object.
Definition: shmem.h:14
Permission perm
Permissions.
Definition: shmem.h:15
Handle handle
Kernel object handle.
Definition: shmem.h:13
void * map_addr
Address to which the shared memory object is mapped.
Definition: shmem.h:16
Permission
Memory permission bitmasks.
Definition: svc.h:80
u32 Handle
Kernel object handle.
Definition: types.h:43
u32 Result
Function error code result type.
Definition: types.h:44