/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Kernel { class ProcFSInode; class ProcFS final : public FileSystem { friend class ProcFSInode; 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; }; }