/* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace Kernel { class AsyncBlockDeviceRequest; class RamdiskController final : public StorageController { public: static NonnullRefPtr initialize(); virtual ~RamdiskController() override; virtual RefPtr device(u32 index) const override; virtual bool reset() override; virtual bool shutdown() override; virtual size_t devices_count() const override; virtual void complete_current_request(AsyncDeviceRequest::RequestResult) override; private: RamdiskController(); NonnullRefPtrVector m_devices; }; }