#include "CharacterDevice.h" #include Device::Device(unsigned major, unsigned minor) : m_major(major) , m_minor(minor) { VFS::the().register_device(*this); } Device::~Device() { VFS::the().unregister_device(*this); } RetainPtr Device::open(int& error, int options) { return VFS::the().open(*this, error, options); } void Device::close() { } int Device::ioctl(Process&, unsigned, unsigned) { return -ENOTTY; }