2022-04-22 12: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 15:51:45 +03:00
|
|
|
class SysFSDeviceIdentifiersDirectory final : public SysFSDirectory {
|
2022-04-22 12:46:19 +03:00
|
|
|
public:
|
|
|
|
|
virtual StringView name() const override { return "dev"sv; }
|
2022-04-22 15:51:45 +03:00
|
|
|
static NonnullRefPtr<SysFSDeviceIdentifiersDirectory> must_create(SysFSRootDirectory const&);
|
2022-04-22 12:46:19 +03:00
|
|
|
|
|
|
|
|
private:
|
2022-04-22 15:51:45 +03:00
|
|
|
explicit SysFSDeviceIdentifiersDirectory(SysFSRootDirectory const&);
|
2022-04-22 12:46:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|