Kernel: Implement DevFileSystem::remove_device

This function cleanly removes the devices from the whole filesystem.

USB devices are now removed from the filesystem as soon as they are
destroyed.
This commit is contained in:
2024-07-15 22:09:21 +03:00
parent 0578d41500
commit 9d7f97ccd5
3 changed files with 21 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ namespace Kernel
void initialize_device_updater();
void add_device(BAN::RefPtr<Device>);
void remove_device(BAN::RefPtr<Device>);
void add_inode(BAN::StringView path, BAN::RefPtr<TmpInode>);
void initiate_sync(bool should_block);