mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 13:55:00 +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
|
@ -584,12 +584,12 @@ InodeIdentifier VFS::Mount::host() const
|
|||
return m_host_custody->inode().identifier();
|
||||
}
|
||||
|
||||
void VFS::register_device(Device& device)
|
||||
void VFS::register_device(Badge<Device>, Device& device)
|
||||
{
|
||||
m_devices.set(encoded_device(device.major(), device.minor()), &device);
|
||||
}
|
||||
|
||||
void VFS::unregister_device(Device& device)
|
||||
void VFS::unregister_device(Badge<Device>, Device& device)
|
||||
{
|
||||
m_devices.remove(encoded_device(device.major(), device.minor()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue