1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Kernel/FileSystem: Simplify the ProcFS inode code

This is done by merging all scattered pieces of derived classes from the
ProcFSInode class into that one class, so we don't use inheritance but
rather simplistic checks to determine the proper code for each ProcFS
inode with its specific characteristics.
This commit is contained in:
Liav A 2022-11-25 22:29:27 +02:00 committed by Jelle Raaijmakers
parent e9dcc49f9c
commit 722ae35329
25 changed files with 583 additions and 913 deletions

View file

@ -14,18 +14,8 @@
namespace Kernel {
class ProcFSInode;
class ProcFSProcessDirectoryInode;
class ProcFSGlobalInode;
class ProcFSAssociatedProcessInode;
class ProcFSProcessSubDirectoryInode;
class ProcFS final : public FileSystem {
friend class ProcFSInode;
friend class ProcFSDirectoryInode;
friend class ProcFSProcessDirectoryInode;
friend class ProcFSGlobalInode;
friend class ProcFSAssociatedProcessInode;
friend class ProcFSProcessSubDirectoryInode;
public:
virtual ~ProcFS() override;
@ -39,7 +29,7 @@ public:
private:
ProcFS();
LockRefPtr<ProcFSDirectoryInode> m_root_inode;
LockRefPtr<ProcFSInode> m_root_inode;
};
}