summaryrefslogtreecommitdiffstats
path: root/mem/slab.h
diff options
context:
space:
mode:
Diffstat (limited to 'mem/slab.h')
-rw-r--r--mem/slab.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/mem/slab.h b/mem/slab.h
deleted file mode 100644
index 074d278..0000000
--- a/mem/slab.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef JOVE_MEMORY_SLAB_H
-#define JOVE_MEMORY_SLAB_H 1
-
-#include <stdint.h>
-#include <stddef.h>
-#include <stdbool.h>
-
-#define SLABCACHE_NAME_LIMIT 32
-struct SlabCache
-{
- char name[SLABCACHE_NAME_LIMIT];
-
- struct SlabDescriptor *list_free;
- struct SlabDescriptor *list_partial;
- struct SlabDescriptor *list_full;
-
- size_t obj_size;
- size_t slab_pages;
-};
-
-struct SlabDescriptor
-{
- struct SlabDescriptor *prev;
- struct SlabDescriptor *next;
- void *slab_base;
- void *obj_base;
-
- size_t free_count;
- int free_index;
- uintptr_t free[];
-};
-
-#endif