Files
mango/dev/block.c

14 lines
209 B
C
Raw Normal View History

#include <socks/device.h>
struct block_device *block_device_create(void)
{
struct device *dev = device_alloc();
if (!dev) {
return NULL;
}
dev->dev_type = DEV_TYPE_BLOCK;
return BLOCK_DEVICE(dev);
}