summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-03-13 05:07:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-29 20:53:59 +0200
commitb8ec5449f2e29cffe62aed10e48663c58451d8d4 (patch)
tree2b2742152418e349f4fd00eeda70ee498bc7cbfa /Kernel
parent2a5d9a6944a71a44fe5e25a6d891b35f2be1a5e7 (diff)
downloadserenity-b8ec5449f2e29cffe62aed10e48663c58451d8d4.zip
Kernel: Remove DMI exposed blobs from ProcFS
This was a hack I wrote merely to allow dmidecode to find these blobs somewhere. These blobs are going to be part of upcoming SysFS :)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 396e9f474a..3bf3d79d7d 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -14,7 +14,6 @@
#include <Kernel/Arch/x86/ProcessorInfo.h>
#include <Kernel/CommandLine.h>
#include <Kernel/ConsoleDevice.h>
-#include <Kernel/DMI.h>
#include <Kernel/Debug.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Devices/HID/HIDManagement.h>
@@ -73,8 +72,6 @@ enum ProcFileType {
FI_Root_cpuinfo,
FI_Root_dmesg,
FI_Root_interrupts,
- FI_Root_dmi,
- FI_Root_smbios_entry_point,
FI_Root_keymap,
FI_Root_pci,
FI_Root_devices,
@@ -388,24 +385,6 @@ static bool procfs$pci(InodeIdentifier, KBufferBuilder& builder)
return true;
}
-static bool procfs$dmi(InodeIdentifier, KBufferBuilder& builder)
-{
- if (!DMIExpose::the().is_available())
- return false;
- auto structures_ptr = DMIExpose::the().structure_table();
- builder.append_bytes(ReadonlyBytes { structures_ptr->data(), structures_ptr->size() });
- return true;
-}
-
-static bool procfs$smbios_entry_point(InodeIdentifier, KBufferBuilder& builder)
-{
- if (!DMIExpose::the().is_available())
- return false;
- auto structures_ptr = DMIExpose::the().entry_point();
- builder.append_bytes(ReadonlyBytes { structures_ptr->data(), structures_ptr->size() });
- return true;
-}
-
static bool procfs$interrupts(InodeIdentifier, KBufferBuilder& builder)
{
JsonArraySerializer array { builder };
@@ -1265,14 +1244,6 @@ InodeMetadata ProcFSInode::metadata() const
case FI_PID_stacks:
metadata.mode = S_IFDIR | S_IRUSR | S_IXUSR;
break;
- case FI_Root_smbios_entry_point:
- metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
- metadata.size = DMIExpose::the().entry_point_length();
- break;
- case FI_Root_dmi:
- metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
- metadata.size = DMIExpose::the().structure_table_length();
- break;
default:
metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
break;
@@ -1788,8 +1759,6 @@ ProcFS::ProcFS()
m_entries[FI_Root_self] = { "self", FI_Root_self, false, procfs$self };
m_entries[FI_Root_pci] = { "pci", FI_Root_pci, false, procfs$pci };
m_entries[FI_Root_interrupts] = { "interrupts", FI_Root_interrupts, false, procfs$interrupts };
- m_entries[FI_Root_dmi] = { "DMI", FI_Root_dmi, false, procfs$dmi };
- m_entries[FI_Root_smbios_entry_point] = { "smbios_entry_point", FI_Root_smbios_entry_point, false, procfs$smbios_entry_point };
m_entries[FI_Root_keymap] = { "keymap", FI_Root_keymap, false, procfs$keymap };
m_entries[FI_Root_devices] = { "devices", FI_Root_devices, false, procfs$devices };
m_entries[FI_Root_uptime] = { "uptime", FI_Root_uptime, false, procfs$uptime };