diff options
author | Liav A <liavalb@gmail.com> | 2023-02-20 17:51:18 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-24 22:14:18 +0100 |
commit | c56e1c53783ae0f2c7388160cf88c0c6b7c09081 (patch) | |
tree | 38046b7a448977b8fe22d3a22077373e786c2584 /Kernel/Arch | |
parent | 9216caeec20c41e96e969d8992d6a104649a94de (diff) | |
download | serenity-c56e1c53783ae0f2c7388160cf88c0c6b7c09081.zip |
Kernel/FileSystem: Simplify the ProcFS significantly
Since the ProcFS doesn't hold many global objects within it, the need
for a fully-structured design of backing components and a registry like
with the SysFS is no longer true.
To acommodate this, let's remove all backing store and components of the
ProcFS, so now it resembles what we had in the early days of ProcFS in
the project - a mostly-static filesystem, with very small amount of
kmalloc allocations needed.
We still use the inode index mechanism to understand the role of each
inode, but this is done in a much "static"ier way than before.
Diffstat (limited to 'Kernel/Arch')
-rw-r--r-- | Kernel/Arch/aarch64/init.cpp | 1 | ||||
-rw-r--r-- | Kernel/Arch/x86_64/init.cpp | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Arch/aarch64/init.cpp b/Kernel/Arch/aarch64/init.cpp index 78ad3c91ce..7a690cce94 100644 --- a/Kernel/Arch/aarch64/init.cpp +++ b/Kernel/Arch/aarch64/init.cpp @@ -175,7 +175,6 @@ extern "C" [[noreturn]] void init() Processor::disable_interrupts(); TimeManagement::initialize(0); - ProcFSComponentRegistry::initialize(); JailManagement::the(); Process::initialize(); diff --git a/Kernel/Arch/x86_64/init.cpp b/Kernel/Arch/x86_64/init.cpp index 4e62011afc..cc2b2757c2 100644 --- a/Kernel/Arch/x86_64/init.cpp +++ b/Kernel/Arch/x86_64/init.cpp @@ -47,7 +47,6 @@ #include <Kernel/Panic.h> #include <Kernel/Prekernel/Prekernel.h> #include <Kernel/Process.h> -#include <Kernel/ProcessExposed.h> #include <Kernel/Random.h> #include <Kernel/Scheduler.h> #include <Kernel/Sections.h> @@ -232,7 +231,6 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info) __stack_chk_guard = get_fast_random<uintptr_t>(); - ProcFSComponentRegistry::initialize(); JailManagement::the(); Process::initialize(); |