2023-04-03 16:59:14 +01:00
|
|
|
#include <socks/device.h>
|
|
|
|
|
|
|
|
|
|
struct char_device *char_device_create(void)
|
|
|
|
|
{
|
|
|
|
|
struct device *dev = device_alloc();
|
|
|
|
|
if (!dev) {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dev->dev_type = DEV_TYPE_CHAR;
|
2023-06-02 19:35:07 +01:00
|
|
|
|
2023-04-03 16:59:14 +01:00
|
|
|
return CHAR_DEVICE(dev);
|
|
|
|
|
}
|