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

Kernel: Remove the /sys/kernel/constants directory

The name for this directory is a bit awkward. Also, the distinction of
constant information is not really valuable as I thought it would be, so
let's bring that information back into the /sys/kernel directory.
This commit is contained in:
Liav A 2023-08-12 14:06:35 +03:00 committed by Jelle Raaijmakers
parent 751aae77bc
commit aee5f4e4b2
8 changed files with 32 additions and 88 deletions

View file

@ -38,7 +38,7 @@ static KernelBaseState s_kernel_base_state = KernelBaseState::Uninitialized;
Optional<FlatPtr> kernel_base()
{
if (s_kernel_base_state == KernelBaseState::Uninitialized) {
auto file = Core::File::open("/sys/kernel/constants/load_base"sv, Core::File::OpenMode::Read);
auto file = Core::File::open("/sys/kernel/load_base"sv, Core::File::OpenMode::Read);
if (file.is_error()) {
s_kernel_base_state = KernelBaseState::Invalid;
return {};