mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-05 02:38:57 +00:00
The ProcFS is an utter mess currently, so let's start move things that are not related to processes-info. To ensure it's done in a sane manner, we start by duplicating all /proc/ global nodes to the /sys/kernel/ directory, then we will move Userland to use the new directory so the old directory nodes can be removed from the /proc directory.
25 lines
600 B
C++
25 lines
600 B
C++
/*
|
|
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/FileSystem/SysFS/Component.h>
|
|
#include <Kernel/FileSystem/SysFS/RootDirectory.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class SysFSGlobalKernelVariablesDirectory : public SysFSDirectory {
|
|
public:
|
|
static NonnullLockRefPtr<SysFSGlobalKernelVariablesDirectory> must_create(SysFSDirectory const&);
|
|
virtual StringView name() const override { return "variables"sv; }
|
|
|
|
private:
|
|
explicit SysFSGlobalKernelVariablesDirectory(SysFSDirectory const&);
|
|
};
|
|
|
|
}
|