/* * Copyright (c) 2022, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Kernel { class BlockDevice; class SysFSBlockDevicesDirectory final : public SysFSDirectory { public: virtual StringView name() const override { return "block"sv; } static NonnullRefPtr must_create(SysFSDeviceIdentifiersDirectory const&); static SysFSBlockDevicesDirectory& the(); ChildList& devices_list(Badge) { return m_child_components; } private: explicit SysFSBlockDevicesDirectory(SysFSDeviceIdentifiersDirectory const&); }; }