Result jitCreate(Jit *j, size_t size)
Creates a JIT buffer.
static void * jitGetRxAddr(Jit *j)
Gets the address of the executable memory alias of a JIT buffer.
Definition: jit.h:74
JitType
JIT implementation type.
Definition: jit.h:12
@ JitType_SetProcessMemoryPermission
JIT supported using svcSetProcessMemoryPermission.
Definition: jit.h:13
@ JitType_CodeMemory
JIT supported using [4.0.0+] CodeMemory syscalls.
Definition: jit.h:14
Result jitTransitionToExecutable(Jit *j)
Transition a JIT buffer to have executable permission.
Result jitClose(Jit *j)
Destroys a JIT buffer.
static void * jitGetRwAddr(Jit *j)
Gets the address of the writable memory alias of a JIT buffer.
Definition: jit.h:65
Result jitTransitionToWritable(Jit *j)
Transition a JIT buffer to have writable permission.
JIT buffer object.
Definition: jit.h:18
u32 Handle
Kernel object handle.
Definition: types.h:43
u32 Result
Function error code result type.
Definition: types.h:44
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition: types.h:92
Virtual memory mapping utilities.
struct VirtmemReservation VirtmemReservation
Address space reservation type (see virtmemAddReservation)
Definition: virtmem.h:11