mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Rename SysFSSystemBoolean => SysFSSystemBooleanVariable
This commit is contained in:
parent
756d2a7f63
commit
7dcf8f971b
8 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace Kernel {
|
||||
|
||||
UNMAP_AFTER_INIT SysFSCapsLockRemap::SysFSCapsLockRemap(SysFSDirectory const& parent_directory)
|
||||
: SysFSSystemBoolean(parent_directory)
|
||||
: SysFSSystemBooleanVariable(parent_directory)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace Kernel {
|
||||
|
||||
UNMAP_AFTER_INIT SysFSDumpKmallocStacks::SysFSDumpKmallocStacks(SysFSDirectory const& parent_directory)
|
||||
: SysFSSystemBoolean(parent_directory)
|
||||
: SysFSSystemBooleanVariable(parent_directory)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace Kernel {
|
||||
|
||||
UNMAP_AFTER_INIT SysFSUBSANDeadly::SysFSUBSANDeadly(SysFSDirectory const& parent_directory)
|
||||
: SysFSSystemBoolean(parent_directory)
|
||||
: SysFSSystemBooleanVariable(parent_directory)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue