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:
Michael Shaw 2023-05-19 16:49:34 -04:00
commit 29a0435cf6
13 changed files with 196 additions and 46 deletions

View file

@ -38,12 +38,12 @@ struct gpt_header {
/* GPT LBA 2 */
struct gpt_entry {
uint8_t guid[16];
uint8_t guid_parent[16];
uint64_t type_guid[2];
uint64_t unique_guid[2];
uint64_t lba_first;
uint64_t lba_last;
uint8_t attr[8];
char name[72];
uint64_t flags;
uint8_t name[72];
} PACKED;
void block_gpt_init(struct block_device *dev);