From 7dcf8f971b9caf7abe01691fcedce978844585e4 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 26 Nov 2022 12:01:00 +0200 Subject: [PATCH] Kernel: Rename SysFSSystemBoolean => SysFSSystemBooleanVariable --- .../SysFS/Subsystems/Kernel/Variables/BooleanVariable.cpp | 6 +++--- .../SysFS/Subsystems/Kernel/Variables/BooleanVariable.h | 4 ++-- .../SysFS/Subsystems/Kernel/Variables/CapsLockRemap.cpp | 2 +- .../SysFS/Subsystems/Kernel/Variables/CapsLockRemap.h | 2 +- .../SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.cpp | 2 +- .../SysFS/Subsystems/Kernel/Variables/DumpKmallocStack.h | 2 +- .../SysFS/Subsystems/Kernel/Variables/UBSANDeadly.cpp | 2 +- .../SysFS/Subsystems/Kernel/Variables/UBSANDeadly.h | 2 +- 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 456f07480d0..4f7769e9a9f 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 SysFSSystemBoolean::try_generate(KBufferBuilder& builder) +ErrorOr SysFSSystemBooleanVariable::try_generate(KBufferBuilder& builder) { return builder.appendff("{}\n", static_cast(value())); } -ErrorOr SysFSSystemBoolean::write_bytes(off_t, size_t count, UserOrKernelBuffer const& buffer, OpenFileDescription*) +ErrorOr 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 SysFSSystemBoolean::write_bytes(off_t, size_t count, UserOrKerne }); } -ErrorOr SysFSSystemBoolean::truncate(u64 size) +ErrorOr 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 a877fc8b9e5..6c5a24491bc 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 1c746212248..07a2b6eeda9 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 effbcd6e49c..f0bd11bf9fd 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 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 5464b6ac77f..70eec470ce0 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 7e29ac33857..1bc2ad995ee 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 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 44bd1a4d2d0..066ed5e6c91 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 6c18625f2dd..369ce8a8544 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 must_create(SysFSDirectory const&);