Documentation
¶
Index ¶
- func SvcAcceptSession(serverHandle *uint32, portHandle uint32) uint64
- func SvcChangeKernelTraceState(kernelTraceState uint32)
- func SvcControlCodeMemory(codeHandle uint32, op uint64, dstAddr, size uintptr, perm uint64) uint64
- func SvcCreateCodeMemory(handle *uint32, srcAddr, size uintptr) uint64
- func SvcCreateEvent(serverHandle, clientHandle *uint32) uint64
- func SvcCreateInterruptEvent(handle *uint32, irqNum uint64, flag uint32) uint64
- func SvcCreateSession(serverHandle, clientHandle *uint32, unk0 uint32, unk1 uint64) uint64
- func SvcCreateSharedMemory(handle *uint32, size uintptr, localPerm, otherPerm uint32) uint64
- func SvcDumpInfo(dumpInfoType uint32, arg0 uint64)
- func SvcKernelDebug(kernelDebugType uint32, arg0, arg1, arg2 uint64)
- func SvcMapPhysicalMemoryUnsafe(addr, size uintptr) uint64
- func SvcMapTransferMemory(tmemHandle uint32, addr, size uintptr, perm uint32) uint64
- func SvcQueryPhysicalAddress(out uintptr, virtaddr uintptr) uint64
- func SvcReadWriteRegister(outVal *uint32, regAddr uint64, rwMask, inVal uint32) uint64
- func SvcReplyAndReceive(index *int32, handles *uint32, handleCount uint32, replyTarget uint32, ...) uint64
- func SvcReplyAndReceiveLight(handle uint32) uint64
- func SvcReplyAndReceiveWithUserBuffer(index *int32, userBuffer uintptr, size uint64, handles *uint32, ...) uint64
- func SvcSetProcessActivity(process uint32, paused bool) uint64
- func SvcSetUnsafeLimit(size uintptr) uint64
- func SvcSleepSystem()
- func SvcUnmapPhysicalMemoryUnsafe(addr, size uintptr) uint64
- func SvcUnmapTransferMemory(tmemHandle uint32, addr, size uintptr) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SvcAcceptSession ¶
SvcAcceptSession Accepts an IPC session.
This is a privileged syscall. svc 0x41
func SvcChangeKernelTraceState ¶
func SvcChangeKernelTraceState(kernelTraceState uint32)
SvcChangeKernelTraceState Performs a debugging operation on the kernel
This is a privileged syscall. Only on firmware 4.0.0+ svc 0x3D
func SvcControlCodeMemory ¶
SvcControlCodeMemory Maps code memory in the caller's address space
Only on firmware 4.0.0+ This is a privileged syscall. svc 0x4C
func SvcCreateCodeMemory ¶
SvcCreateCodeMemory Creates code memory in the caller's address space
Only on firmware 4.0.0+ This is a privileged syscall. svc 0x4B
func SvcCreateInterruptEvent ¶
SvcCreateInterruptEvent Creates an event and binds it to a specific hardware interrupt.
This is a privileged syscall. svc 0x53
func SvcCreateSession ¶
SvcCreateSession Creates an IPC session.
This is a privileged syscall. svc 0x40
func SvcCreateSharedMemory ¶
SvcCreateSharedMemory Creates a block of shared memory.
This is a privileged syscall. svc 0x50
func SvcDumpInfo ¶
SvcDumpInfo Causes the kernel to dump debug information.
This is a privileged syscall. Only on firmware 1.0.0 to 3.0.2 svc 0x3C
func SvcKernelDebug ¶
SvcKernelDebug Performs a debugging operation on the kernel.
This is a privileged syscall. Only on firmware 4.0.0+ svc 0x3C
func SvcMapPhysicalMemoryUnsafe ¶
SvcMapPhysicalMemoryUnsafe Maps unsafe memory (usable for GPU DMA) for a system module at the desired address.
Only on firmware 5.0.0+ This is a privileged syscall. svc 0x48
func SvcMapTransferMemory ¶
SvcMapTransferMemory Maps a block of transfer memory.
This is a privileged syscall. svc 0x51
func SvcQueryPhysicalAddress ¶
SvcQueryPhysicalAddress Queries information about a certain virtual address, including its physical address.
This is a privileged syscall. svc 0x54
func SvcReadWriteRegister ¶
SvcReadWriteRegister Reads/writes a protected MMIO register.
This is a privileged syscall. svc 0x4E
func SvcReplyAndReceive ¶
func SvcReplyAndReceive(index *int32, handles *uint32, handleCount uint32, replyTarget uint32, timeout uint64) uint64
SvcReplyAndReceive Performs light IPC input/output.
This is a privileged syscall. svc 0x43
func SvcReplyAndReceiveLight ¶
SvcReplyAndReceiveLight Performs light IPC input/output.
This is a privileged syscall. svc 0x42
func SvcReplyAndReceiveWithUserBuffer ¶
func SvcReplyAndReceiveWithUserBuffer(index *int32, userBuffer uintptr, size uint64, handles *uint32, handleCount uint32, replyTarget uint32, timeout uint64) uint64
SvcReplyAndReceiveWithUserBuffer Performs IPC input/output from an user allocated buffer
This is a privileged syscall. svc 0x44
func SvcSetProcessActivity ¶
SvcSetProcessActivity Configures the pause/unpause status of a process.
This is a privileged syscall. svc 0x4F
func SvcSetUnsafeLimit ¶
SvcSetUnsafeLimit Sets the system-wide limit for unsafe memory mappable using svcMapPhysicalMemoryUnsafe.
Only on firmware 5.0.0+ This is a privileged syscall. svc 0x4A
func SvcSleepSystem ¶
func SvcSleepSystem()
SvcSleepSystem Causes the system to enter deep sleep.
This is a privileged syscall. svc 0x4D
func SvcUnmapPhysicalMemoryUnsafe ¶
SvcMapPhysicalMemoryUnsafe Undoes the effects of SvcMapPhysicalMemoryUnsafe
Only on firmware 5.0.0+ This is a privileged syscall. svc 0x49
func SvcUnmapTransferMemory ¶
SvcUnmapTransferMemory Unmaps a block of transfer memory.
This is a privileged syscall. svc 0x52
Types ¶
This section is empty.