mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
parent
527c8047fe
commit
f48feae0b2
Notes:
sideshowbarker
2024-07-19 03:23:13 +09:00
Author: https://github.com/tomuta
Commit: f48feae0b2
Pull-request: https://github.com/SerenityOS/serenity/pull/3229
Issue: https://github.com/SerenityOS/serenity/issues/3226
Reviewed-by: https://github.com/awesomekling
44 changed files with 184 additions and 146 deletions
|
@ -31,18 +31,17 @@
|
|||
#include <Kernel/FileSystem/FileSystem.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/Net/LocalSocket.h>
|
||||
#include <Kernel/Singleton.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibC/errno_numbers.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static u32 s_lastFileSystemID;
|
||||
static HashMap<u32, FS*>* s_fs_map;
|
||||
static auto s_fs_map = make_singleton<HashMap<u32, FS*>>();
|
||||
|
||||
static HashMap<u32, FS*>& all_fses()
|
||||
{
|
||||
if (!s_fs_map)
|
||||
s_fs_map = new HashMap<u32, FS*>();
|
||||
return *s_fs_map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue