slab: no longer automatically allocate slab cache sizes
This commit is contained in:
parent
b90946e1f8
commit
d3e9b728dc
3 changed files with 15 additions and 18 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue