~cypheon/xos

xos/blockdev.c -rw-r--r-- 169 bytes
567db604 — Johann Rudloff Implement scanning and allocation of physical memory. 7 years ago
                                                                                
1
2
3
4
5
#include <dev/blockdev.h>

int bdev_read(struct blockdev *dev, void *dst, size_t lba, size_t num_blocks) {
  return dev->read_blocks(dev->priv, dst, lba, num_blocks);
}