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