4 # error Can be compiled only with GCC. 11 #include <psp2kern/types.h> 13 extern const size_t slab_pagesize;
27 size_t itemsize, itemcount;
28 size_t slabsize, pages_per_alloc;
29 uint64_t initial_slotmask, empty_slotmask;
30 uintptr_t alignment_mask;
35 void slab_init(
struct slab_chain *,
size_t, SceUID);
36 void *slab_alloc(
struct slab_chain *, uintptr_t *);
37 void slab_free(
struct slab_chain *,
const void *);
38 uintptr_t slab_getmirror(
struct slab_chain *,
const void *);
39 void slab_traverse(
const struct slab_chain *,
void (*)(
const void *));