mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
To do this we also need to get rid of LockRefPtrs in the USB code as well. Most of the SysFS nodes are statically generated during boot and are not mutated afterwards. The same goes for general device code - once we generate the appropriate SysFS nodes, we almost never mutate the node pointers afterwards, making locking unnecessary.
25 lines
585 B
C++
25 lines
585 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 SysFSGlobalKernelStatsDirectory : public SysFSDirectory {
|
|
public:
|
|
static NonnullRefPtr<SysFSGlobalKernelStatsDirectory> must_create(SysFSRootDirectory const&);
|
|
virtual StringView name() const override { return "kernel"sv; }
|
|
|
|
private:
|
|
explicit SysFSGlobalKernelStatsDirectory(SysFSDirectory const&);
|
|
};
|
|
|
|
}
|