libctru  v1.6.0
Functions
hb.h File Reference

HB (Homebrew) service. More...

#include <3ds/types.h>

Go to the source code of this file.

Functions

Result hbInit (void)
 Initializes HB.
 
void hbExit (void)
 Exits HB.
 
Result HB_FlushInvalidateCache (void)
 Flushes/invalidates the entire data/instruction cache.
 
Result HB_GetBootloaderAddresses (void **load3dsx, void **setArgv)
 Fetches the address for Ninjhax 1.x bootloader addresses. More...
 
Result HB_ReprotectMemory (u32 *addr, u32 pages, u32 mode, u32 *reprotectedPages)
 Changes the permissions of a given number of pages at address addr to mode. More...
 

Detailed Description

HB (Homebrew) service.

Function Documentation

◆ HB_GetBootloaderAddresses()

Result HB_GetBootloaderAddresses ( void **  load3dsx,
void **  setArgv 
)

Fetches the address for Ninjhax 1.x bootloader addresses.

Parameters
load3dsxvoid (*callBootloader)(Handle hb, Handle file);
setArgvvoid (setArgs)(u32 src, u32 length);

◆ HB_ReprotectMemory()

Result HB_ReprotectMemory ( u32 addr,
u32  pages,
u32  mode,
u32 reprotectedPages 
)

Changes the permissions of a given number of pages at address addr to mode.

Should it fail, the appropriate kernel error code will be returned and *reprotectedPages (if not NULL) will be set to the number of sequential pages which were successfully reprotected + 1

Parameters
addrAddress to reprotect.
pagesNumber of pages to reprotect.
modeMode to reprotect to.
reprotectedPagesNumber of successfully reprotected pages, on failure.