mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
FileSystem: VFS should require Badge<Device> for device registration.
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user