}
int
-__block_read(struct device* dev,
- void* buf,
- unsigned int offset,
- unsigned int len)
+__block_read(struct device* dev, void* buf, size_t offset, size_t len)
{
int errno;
struct block_dev* bdev = (struct block_dev*)dev->underlay;
}
int
-__block_write(struct device* dev,
- void* buf,
- unsigned int offset,
- unsigned int len)
+__block_write(struct device* dev, void* buf, size_t offset, size_t len)
{
int errno;
struct block_dev* bdev = (struct block_dev*)dev->underlay;
return 0;
}
- struct device* dev = device_add(NULL, bdev, "sd%c", 'a' + free_slot);
+ struct device* dev = device_addvol(NULL, bdev, "sd%c", 'a' + free_slot);
dev->write = __block_write;
dev->read = __block_read;