10 #include "../kernel/svc.h"
Transfer memory information structure.
Definition: tmem.h:13
Permission perm
Permissions of the transfer memory object.
Definition: tmem.h:16
Handle handle
Kernel object handle.
Definition: tmem.h:14
void * src_addr
Address of the source backing memory.
Definition: tmem.h:17
void * map_addr
Address to which the transfer memory object is mapped.
Definition: tmem.h:18
size_t size
Size of the transfer memory object.
Definition: tmem.h:15
Permission
Memory permission bitmasks.
Definition: svc.h:80
Result tmemUnmap(TransferMemory *t)
Unmaps a transfer memory object.
static void * tmemGetAddr(TransferMemory *t)
Retrieves the mapped address of a transfer memory object.
Definition: tmem.h:71
Result tmemMap(TransferMemory *t)
Maps a transfer memory object.
Result tmemCreate(TransferMemory *t, size_t size, Permission perm)
Creates a transfer memory object.
void tmemLoadRemote(TransferMemory *t, Handle handle, size_t size, Permission perm)
Loads a transfer memory object coming from a remote process.
Result tmemCreateFromMemory(TransferMemory *t, void *buf, size_t size, Permission perm)
Creates a transfer memory object from existing memory.
Result tmemCloseHandle(TransferMemory *t)
Closes handle of a transfer memory object.
Result tmemClose(TransferMemory *t)
Frees up resources used by a transfer memory object, unmapping and closing handles,...
Result tmemWaitForPermission(TransferMemory *t, Permission perm)
Waits until source backing memory permissions match perm.
u32 Handle
Kernel object handle.
Definition: types.h:43
u32 Result
Function error code result type.
Definition: types.h:44