mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Kernel/SysFS: Reduce the responsibilities of the Registry object
Instead, let the /sys/dev/block and /sys/dev/char directories to handle the registering part of SysFSDeviceComponents by themselves.
This commit is contained in:
parent
ecc29bb52e
commit
6733f19b3c
Notes:
sideshowbarker
2024-07-17 08:56:09 +09:00
Author: https://github.com/supercomputer7
Commit: 6733f19b3c
Pull-request: https://github.com/SerenityOS/serenity/pull/13779
11 changed files with 72 additions and 31 deletions
|
|
@ -19,7 +19,7 @@ NonnullRefPtr<SysFSRootDirectory> SysFSRootDirectory::create()
|
|||
|
||||
ErrorOr<void> SysFSRootDirectory::traverse_as_directory(FileSystemID fsid, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)> callback) const
|
||||
{
|
||||
MutexLocker locker(SysFSComponentRegistry::the().get_lock());
|
||||
MutexLocker locker(m_traverse_lock);
|
||||
TRY(callback({ "."sv, { fsid, component_index() }, 0 }));
|
||||
TRY(callback({ ".."sv, { fsid, 0 }, 0 }));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue