Family of src/nx/nn/hooks.hook. The hooks_off setting turns a family off by its name.
the C and C++ libraries' allocation functions (alloc.c): the host's jemalloc, in an arena of its own whose pages are guest memory. Only a block the arena handed out goes back to it: any other pointer, a piece of a region the game's own allocator carved from an arena block among them, goes to the function's own code. Off without jemalloc, and in a game whose address space has no room for the arena
malloc sourceAs C: addr (u64 size)
Handler: alloc_malloc (alloc.c)
calloc sourceAs C: addr (u64 count, u64 size)
Handler: alloc_calloc (alloc.c)
realloc sourceAs C: addr (addr p, u64 size)
Handler: alloc_realloc (alloc.c)
free sourceAs C: void (addr p)
Handler: alloc_free (alloc.c)
a game whose malloc is its nn::mem::StandardAllocator's hands the allocator a block malloc gave: its GetSizeOf, and the SDK heap's functions its others end in (nn::nlibsdk::heap), CentralHeap's and, on a thread with a cache, those of the TlsHeapCache's table, in each spelling the SDKs give them (Mode0 or an older _Mode0, a template's two instances)
nn::mem::StandardAllocator::GetSizeOf(void const*) const source_ZNK2nn3mem17StandardAllocator9GetSizeOfEPKv
As C: u64 (addr self, addr p)
Handler: alloc_std_size (alloc.c)
nn::nlibsdk::heap::CentralHeap::GetAllocSize(void const*) source_ZN2nn7nlibsdk4heap11CentralHeap12GetAllocSizeEPKv
As C: u64 (addr heap, addr p)
Handler: alloc_std_size (alloc.c)
nn::nlibsdk::heap::CentralHeap::Free(void*) source_ZN2nn7nlibsdk4heap11CentralHeap4FreeEPv
As C: i32 (addr heap, addr p)
Handler: alloc_heap_free (alloc.c)
nn::nlibsdk::heap::CentralHeap::Realloc(void*, unsigned long, void**) source_ZN2nn7nlibsdk4heap11CentralHeap7ReallocEPvmPS3_
As C: i32 (addr heap, addr p, u64 size, addr out)
Handler: alloc_heap_realloc (alloc.c)
nn::nlibsdk::heap::CentralHeap::FreeWithSize(void*, unsigned long) source_ZN2nn7nlibsdk4heap11CentralHeap12FreeWithSizeEPvm
As C: i32 (addr heap, addr p, u64 size)
Handler: alloc_heap_free_size (alloc.c)
nn::nlibsdk::heap::CentralHeap::Shrink(void*, unsigned long) source_ZN2nn7nlibsdk4heap11CentralHeap6ShrinkEPvm
As C: i32 (addr heap, addr p, u64 size)
Handler: alloc_heap_shrink (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::FreeFuncMode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache13FreeFuncMode0I*EEiPS2_Pv: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p)
Handler: alloc_heap_free (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::FreeFunc_Mode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache14FreeFunc_Mode0I*EEiPS2_Pv: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p)
Handler: alloc_heap_free (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::FreeFuncSizeMode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache17FreeFuncSizeMode0I*EEiPS2_Pvm: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p, u64 size)
Handler: alloc_heap_free_size (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::FreeFuncSize_Mode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache18FreeFuncSize_Mode0I*EEiPS2_Pvm: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p, u64 size)
Handler: alloc_heap_free_size (alloc.c)
nn::nlibsdk::heap::TlsHeapCache::GetAllocSizeFuncMode0(nn::nlibsdk::heap::TlsHeapCache*, void const*) source_ZN2nn7nlibsdk4heap12TlsHeapCache21GetAllocSizeFuncMode0EPS2_PKv
As C: u64 (addr cache, addr p)
Handler: alloc_std_size (alloc.c)
nn::nlibsdk::heap::TlsHeapCache::GetAllocSizeFunc_Mode0(nn::nlibsdk::heap::TlsHeapCache*, void const*) source_ZN2nn7nlibsdk4heap12TlsHeapCache22GetAllocSizeFunc_Mode0EPS2_PKv
As C: u64 (addr cache, addr p)
Handler: alloc_std_size (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::ReallocFuncMode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long, ?*) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache16ReallocFuncMode0I*EEiPS2_PvmPS8_: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p, u64 size, addr out)
Handler: alloc_heap_realloc (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::ReallocFunc_Mode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long, ?*) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache17ReallocFunc_Mode0I*EEiPS2_PvmPS8_: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p, u64 size, addr out)
Handler: alloc_heap_realloc (alloc.c)
int nn::nlibsdk::heap::TlsHeapCache::ShrinkFuncMode0<*>(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long) pattern source_ZN2nn7nlibsdk4heap12TlsHeapCache15ShrinkFuncMode0I*EEiPS2_Pvm: a pattern, whose * matches any run of characters, so one handler takes every instance of the template that compiles to the same code
As C: i32 (addr cache, addr p, u64 size)
Handler: alloc_heap_shrink (alloc.c)
Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.