13 lines
208 B
C
13 lines
208 B
C
#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);
|
|
}
|