slab: replace struct slab with slab_t
This type should never be modified by the user, and only passed into the functions in slab.c. Using a typedef to notifies the user semantically of this fact
This commit is contained in:
parent
0395b65ad8
commit
29a0435cf6
13 changed files with 196 additions and 46 deletions
|
|
@ -27,7 +27,7 @@ struct page kdefault_attrs;
|
|||
paddr_t kcr3 = 0;
|
||||
|
||||
static void *(*alloc_page)(void);
|
||||
static struct slab *kmap_slab;
|
||||
static slab_t *kmap_slab;
|
||||
|
||||
static void buddy_bitmap_set(char *bitmap, size_t depth, size_t n, int val)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue