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

@ -145,7 +145,6 @@ static int cmdslot(hbaport_t *port)
bool ahci_access_sectors(struct sata_device *dev, paddr_t lba, uint16_t count, paddr_t buf, bool write)
{
hbaport_t *port = &dev->abar->ports[dev->port];
uint16_t ocount = count;
/* clear pending interrupt */
port->is = (uint32_t)-1;
@ -218,10 +217,6 @@ bool ahci_access_sectors(struct sata_device *dev, paddr_t lba, uint16_t count, p
return false;
}
/* disk read success */
#ifdef KDEBUG
kprintf(LOG_DEBUG "Read %d sectors from disk\n", ocount);
#endif
return true;
}