/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include 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; static ErrorOr> try_create(); virtual ErrorOr initialize() override; virtual StringView class_name() const override { return "ProcFS"sv; } virtual Inode& root_inode() override; private: ProcFS(); LockRefPtr m_root_inode; }; }