1#ifndef _SLAB_H_INCLUDED
2#define _SLAB_H_INCLUDED
static size_t slab_overhead(const SlabHeader *slab)
SlabIndexType num_entries
Number of objects in this region.
ptr_t slab_alloc(SlabHeader *slab)
uint16_t allocation_size
Size of objects in this region.
void slab_free(SlabHeader *slab, ptr_t memory)
static SlabIndexType slab_index(const SlabHeader *slab, const ptr_t mem)
static ptr_t slab_mem(const SlabHeader *slab, const SlabIndexType idx)
uint32_t bitmap_size
Size of the bitmap in bytes.
void init_slab(ptr_t mem_start, ptr_t mem_end, size_t allocation_size)
uint16_t SlabIndexType
Type for indexing objects in a Slab region.