mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
FileSystem: VFS should require Badge<Device> for device registration.
This commit is contained in:
parent
a1fdda3e20
commit
fa6446fc0d
3 changed files with 10 additions and 9 deletions
|
@ -6,12 +6,12 @@ Device::Device(unsigned major, unsigned minor)
|
|||
: m_major(major)
|
||||
, m_minor(minor)
|
||||
{
|
||||
VFS::the().register_device(*this);
|
||||
VFS::the().register_device({}, *this);
|
||||
}
|
||||
|
||||
Device::~Device()
|
||||
{
|
||||
VFS::the().unregister_device(*this);
|
||||
VFS::the().unregister_device({}, *this);
|
||||
}
|
||||
|
||||
String Device::absolute_path(FileDescriptor&) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue