2022-04-22 06:46:19 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <Kernel/FileSystem/SysFS/Component.h>
|
|
|
|
|
#include <Kernel/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
2022-04-22 09:51:45 -03:00
|
|
|
class SysFSDeviceIdentifiersDirectory final : public SysFSDirectory {
|
2022-04-22 06:46:19 -03:00
|
|
|
public:
|
|
|
|
|
virtual StringView name() const override { return "dev"sv; }
|
2022-08-19 15:53:40 -03:00
|
|
|
static NonnullLockRefPtr<SysFSDeviceIdentifiersDirectory> must_create(SysFSRootDirectory const&);
|
2022-04-22 06:46:19 -03:00
|
|
|
|
2022-04-23 05:48:40 -03:00
|
|
|
static SysFSDeviceIdentifiersDirectory& the();
|
|
|
|
|
|
2022-04-22 06:46:19 -03:00
|
|
|
private:
|
2022-04-22 09:51:45 -03:00
|
|
|
explicit SysFSDeviceIdentifiersDirectory(SysFSRootDirectory const&);
|
2022-04-22 06:46:19 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|