summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-11-26 12:01:00 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-03 05:56:59 -0700
commit7dcf8f971b9caf7abe01691fcedce978844585e4 (patch)
tree3424c3c6aa29e8b378e87bd0c63f320b64288a87
parent756d2a7f63b8a5c12324f956f07bbecbdc2ad3d4 (diff)
downloadserenity-7dcf8f971b9caf7abe01691fcedce978844585e4.zip
Kernel: Rename SysFSSystemBoolean => SysFSSystemBooleanVariable
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp6
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.h4
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp2
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h2
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp2
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h2
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp2
-rw-r--r--Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h2
8 files changed, 11 insertions, 11 deletions
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp
index 456f07480d..4f7769e9a9 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp
@@ -10,12 +10,12 @@
namespace Kernel {
-ErrorOr<void> SysFSSystemBoolean::try_generate(KBufferBuilder& builder)
+ErrorOr<void> SysFSSystemBooleanVariable::try_generate(KBufferBuilder& builder)
{
return builder.appendff("{}\n", static_cast<int>(value()));
}
-ErrorOr<size_t> SysFSSystemBoolean::write_bytes(off_t, size_t count, UserOrKernelBuffer const& buffer, OpenFileDescription*)
+ErrorOr<size_t> SysFSSystemBooleanVariable::write_bytes(off_t, size_t count, UserOrKernelBuffer const& buffer, OpenFileDescription*)
{
MutexLocker locker(m_refresh_lock);
// Note: We do all of this code before taking the spinlock because then we disable
@@ -39,7 +39,7 @@ ErrorOr<size_t> SysFSSystemBoolean::write_bytes(off_t, size_t count, UserOrKerne
});
}
-ErrorOr<void> SysFSSystemBoolean::truncate(u64 size)
+ErrorOr<void> SysFSSystemBooleanVariable::truncate(u64 size)
{
if (size != 0)
return EPERM;
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.h b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.h
index a877fc8b9e..6c5a24491b 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.h
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/BooleanVariable.h
@@ -22,9 +22,9 @@
namespace Kernel {
-class SysFSSystemBoolean : public SysFSGlobalInformation {
+class SysFSSystemBooleanVariable : public SysFSGlobalInformation {
protected:
- explicit SysFSSystemBoolean(SysFSDirectory const& parent_directory)
+ explicit SysFSSystemBooleanVariable(SysFSDirectory const& parent_directory)
: SysFSGlobalInformation(parent_directory)
{
}
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp
index 1c74621224..07a2b6eeda 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp
@@ -11,7 +11,7 @@
namespace Kernel {
UNMAP_AFTER_INIT SysFSCapsLockRemap::SysFSCapsLockRemap(SysFSDirectory const& parent_directory)
- : SysFSSystemBoolean(parent_directory)
+ : SysFSSystemBooleanVariable(parent_directory)
{
}
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h
index effbcd6e49..f0bd11bf9f 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h
@@ -14,7 +14,7 @@
namespace Kernel {
-class SysFSCapsLockRemap final : public SysFSSystemBoolean {
+class SysFSCapsLockRemap final : public SysFSSystemBooleanVariable {
public:
virtual StringView name() const override { return "caps_lock_to_ctrl"sv; }
static NonnullLockRefPtr<SysFSCapsLockRemap> must_create(SysFSDirectory const&);
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp
index 5464b6ac77..70eec470ce 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp
@@ -11,7 +11,7 @@
namespace Kernel {
UNMAP_AFTER_INIT SysFSDumpKmallocStacks::SysFSDumpKmallocStacks(SysFSDirectory const& parent_directory)
- : SysFSSystemBoolean(parent_directory)
+ : SysFSSystemBooleanVariable(parent_directory)
{
}
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h
index 7e29ac3385..1bc2ad995e 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h
@@ -14,7 +14,7 @@
namespace Kernel {
-class SysFSDumpKmallocStacks final : public SysFSSystemBoolean {
+class SysFSDumpKmallocStacks final : public SysFSSystemBooleanVariable {
public:
virtual StringView name() const override { return "kmalloc_stacks"sv; }
static NonnullLockRefPtr<SysFSDumpKmallocStacks> must_create(SysFSDirectory const&);
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp
index 44bd1a4d2d..066ed5e6c9 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp
@@ -11,7 +11,7 @@
namespace Kernel {
UNMAP_AFTER_INIT SysFSUBSANDeadly::SysFSUBSANDeadly(SysFSDirectory const& parent_directory)
- : SysFSSystemBoolean(parent_directory)
+ : SysFSSystemBooleanVariable(parent_directory)
{
}
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h
index 6c18625f2d..369ce8a854 100644
--- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h
+++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h
@@ -13,7 +13,7 @@
namespace Kernel {
-class SysFSUBSANDeadly final : public SysFSSystemBoolean {
+class SysFSUBSANDeadly final : public SysFSSystemBooleanVariable {
public:
virtual StringView name() const override { return "ubsan_is_deadly"sv; }
static NonnullLockRefPtr<SysFSUBSANDeadly> must_create(SysFSDirectory const&);