1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

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.
This commit is contained in:
Liav A 2021-09-11 11:19:33 +03:00 committed by Andreas Kling
parent 9132596b8e
commit 33f033066c
8 changed files with 82 additions and 18 deletions

View file

@ -0,0 +1,24 @@
/*
* 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.h>
namespace Kernel {
class FirmwareSysFSDirectory : public SysFSDirectory {
public:
static void initialize();
void create_components();
private:
FirmwareSysFSDirectory();
};
}