alloc

Family of src/nx/nn/hooks.hook. The hooks_off setting turns a family off by its name.

Page 1 2 3

nn::nlibsdk::heap::TlsHeapCache::ShrinkFuncMode0(nn::nlibsdk::heap::TlsHeapCache*, void*, unsigned long) source

_ZN2nn7nlibsdk4heap12TlsHeapCache15ShrinkFuncMode0EPS2_Pvm
As C: i32 (addr cache, addr p, u64 size)
Handler: alloc_heap_shrink (alloc.c)

aligned_alloc source

As C: addr (u64 align, u64 size)
Handler: alloc_aligned (alloc.c)

memalign source

As C: addr (u64 align, u64 size)
Handler: alloc_aligned (alloc.c)

posix_memalign source

As C: i32 (addr out, u64 align, u64 size)
Handler: alloc_posix_memalign (alloc.c)

strdup source

As C: addr (const char* s)
Handler: alloc_strdup (alloc.c)

strndup source

As C: addr (const char* s, u64 max)
Handler: alloc_strndup (alloc.c)

operator new keeps its own code in a module whose operator delete looks the block's allocator up by its address and is copied where no hook takes it, inlined or in a function no symbol names (alloc_new_shape): a block of the arena there would be looked up past the game's table. And in one whose new takes its block from an allocator object and whose delete asks which heap the block is in: a block of the arena is in none of the game's heaps

operator new(unsigned long) source

_Znwm
As C: addr (u64 size)
Handler: alloc_new (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new[](unsigned long) source

_Znam
As C: addr (u64 size)
Handler: alloc_new (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new(unsigned long, std::align_val_t) source

_ZnwmSt11align_val_t
As C: addr (u64 size, u64 align)
Handler: alloc_new_aligned (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new[](unsigned long, std::align_val_t) source

_ZnamSt11align_val_t
As C: addr (u64 size, u64 align)
Handler: alloc_new_aligned (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new(unsigned long, std::nothrow_t const&) source

_ZnwmRKSt9nothrow_t
As C: addr (u64 size, addr nothrow)
Handler: alloc_new_nothrow (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new[](unsigned long, std::nothrow_t const&) source

_ZnamRKSt9nothrow_t
As C: addr (u64 size, addr nothrow)
Handler: alloc_new_nothrow (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new(unsigned long, std::align_val_t, std::nothrow_t const&) source

_ZnwmSt11align_val_tRKSt9nothrow_t
As C: addr (u64 size, u64 align, addr nothrow)
Handler: alloc_new_aligned_nothrow (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator new[](unsigned long, std::align_val_t, std::nothrow_t const&) source

_ZnamSt11align_val_tRKSt9nothrow_t
As C: addr (u64 size, u64 align, addr nothrow)
Handler: alloc_new_aligned_nothrow (alloc.c)
Check: alloc_new_shape (alloc.c), which says whether a function the pattern matches is one the handler takes

operator delete(void*) source

_ZdlPv
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete[](void*) source

_ZdaPv
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete(void*, unsigned long) source

_ZdlPvm
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete[](void*, unsigned long) source

_ZdaPvm
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete(void*, std::nothrow_t const&) source

_ZdlPvRKSt9nothrow_t
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete[](void*, std::nothrow_t const&) source

_ZdaPvRKSt9nothrow_t
As C: void (addr p)
Handler: alloc_delete (alloc.c)

operator delete(void*, std::align_val_t) source

_ZdlPvSt11align_val_t
As C: void (addr p)
Handler: alloc_delete (alloc.c)

Page 1 2 3


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.