// superslab_head_stub.c - Legacy SuperSlabHead stubs // Purpose: Provide minimal symbols for legacy SuperSlabHead API while // the full implementation is archived. // // Notes: // - The real SuperSlabHead implementation lives in // archive/superslab_head_legacy.c // - Current backend uses shared pool + LRU Box; g_superslab_heads is no // longer populated in production paths. // - These stubs keep the ABI/linkage stable and are effectively no-ops. #include "hakmem_tiny_superslab_internal.h" SuperSlabHead* g_superslab_heads[TINY_NUM_CLASSES_SS] = {NULL}; SuperSlabHead* init_superslab_head(int class_idx) { (void)class_idx; return NULL; } int expand_superslab_head(SuperSlabHead* head) { (void)head; // No legacy expansion; shared pool backend handles growth. return -1; } SuperSlab* find_chunk_for_ptr(void* ptr, int class_idx) { (void)ptr; (void)class_idx; return NULL; } void remove_superslab_from_legacy_head(SuperSlab* ss) { (void)ss; // Legacy list is unused; nothing to do. }