4 #ifndef TAI_PROC_MAP_HEADER 5 #define TAI_PROC_MAP_HEADER 7 #include <psp2kern/types.h> 8 #include "taihen_internal.h" 39 #endif // TAI_PROC_MAP_HEADER SceUID lock
Mutex for accessing buckets.
tai_proc_map_t * proc_map_alloc(int nbuckets)
Allocates a new map.
void proc_map_deinit(void)
Cleans up the map system.
The actual map in memory.
Internal data for a process.
int proc_map_remove(tai_proc_map_t *map, tai_patch_t *patch)
Remove a single patch from the map.
void proc_map_free(tai_proc_map_t *map)
Frees a map.
tai_proc_t * buckets[]
Buckets.
A patch containing either a hook chain or an injection.
int proc_map_remove_all_pid(tai_proc_map_t *map, SceUID pid, tai_patch_t **head)
Removes every patch associated with a given pid from the map.
int nbuckets
Number of buckets set by proc_map_alloc
int proc_map_try_insert(tai_proc_map_t *map, tai_patch_t *patch, tai_patch_t **existing)
Inserts into the map if no overlap or get patch that completely overlaps.
struct _tai_proc_map tai_proc_map_t
The actual map in memory.
int proc_map_init(void)
Initializes the map system.