diff options
author | Liav A <liavalb@gmail.com> | 2021-09-11 11:19:33 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 11:52:16 +0200 |
commit | 33f033066c593f2f0c8ac97335643d968171260e (patch) | |
tree | bb095e33ec81afdd2d6b1c5f7df12b2c706be15a /Kernel/Firmware/ACPI/Parser.h | |
parent | 9132596b8e79a56a1ab0aa146bd837266ed61b09 (diff) | |
download | serenity-33f033066c593f2f0c8ac97335643d968171260e.zip |
Kernel: Unify BIOS and ACPI components in the SysFS firmware directory
Both should reside in the SysFS firmware directory which is normally
located in /sys/firmware.
Also, apply some OOM-safety patterns when creating the BIOS and ACPI
directories.
Diffstat (limited to 'Kernel/Firmware/ACPI/Parser.h')
-rw-r--r-- | Kernel/Firmware/ACPI/Parser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Kernel/Firmware/ACPI/Parser.h b/Kernel/Firmware/ACPI/Parser.h index f4fbfe8003..6fe75ad869 100644 --- a/Kernel/Firmware/ACPI/Parser.h +++ b/Kernel/Firmware/ACPI/Parser.h @@ -6,11 +6,13 @@ #pragma once +#include <AK/RefPtr.h> #include <AK/Types.h> #include <Kernel/CommandLine.h> #include <Kernel/FileSystem/SysFSComponent.h> #include <Kernel/Firmware/ACPI/Definitions.h> #include <Kernel/Firmware/ACPI/Initialize.h> +#include <Kernel/Firmware/SysFSFirmware.h> #include <Kernel/Interrupts/IRQHandler.h> #include <Kernel/Memory/Region.h> #include <Kernel/PhysicalAddress.h> @@ -20,10 +22,10 @@ namespace Kernel::ACPI { class ACPISysFSDirectory : public SysFSDirectory { public: - static void initialize(); + static KResultOr<NonnullRefPtr<ACPISysFSDirectory>> try_create(FirmwareSysFSDirectory& firmware_directory); private: - ACPISysFSDirectory(); + explicit ACPISysFSDirectory(FirmwareSysFSDirectory& firmware_directory); }; class ACPISysFSComponent : public SysFSComponent { |