#include #include #include #include #include #include #include namespace kernel::filesystem::rootfs { struct type final : kernel::filesystem::type { [[nodiscard]] auto name() const noexcept -> std::string_view override { return "rootfs"; } [[nodiscard]] auto requires_device() const noexcept -> bool override { return true; } [[nodiscard]] auto make_instance() const -> kstd::shared_ptr override { return kstd::make_shared(); } }; [[gnu::used]] constexpr auto registration = type_registration{}; auto filesystem::mount(kstd::shared_ptr const &) -> operation_result { m_root_inode = kstd::make_shared(); return operation_result::success; } auto filesystem::lookup(kstd::shared_ptr const &, std::string_view) const -> kstd::shared_ptr { return nullptr; } } // namespace kernel::filesystem::rootfs