slab: no longer automatically allocate slab cache sizes

This commit is contained in:
Michael Shaw 2023-05-10 13:18:37 -04:00
commit d3e9b728dc
3 changed files with 15 additions and 18 deletions

View file

@ -30,7 +30,7 @@ struct kmap_entry {
struct kmap_entry *next;
};
struct slab *slab_create(size_t size, uint64_t flags);
struct slab *slab_create(size_t size, size_t cache_size, uint64_t flags);
void *slab_alloc(struct slab *slab);
void slab_free(struct slab *slab, void *ptr);