mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Add a simple /proc/mounts that enumerates the current VFS mounts.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 18:38:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/81627cf7d53
@@ -501,3 +501,10 @@ void VirtualFileSystem::registerCharacterDevice(unsigned major, unsigned minor,
|
||||
{
|
||||
m_characterDevices.set(encodedDevice(major, minor), &device);
|
||||
}
|
||||
|
||||
void VirtualFileSystem::forEachMount(Function<void(const Mount&)> callback) const
|
||||
{
|
||||
for (auto& mount : m_mounts) {
|
||||
callback(*mount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user