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

Kernel: Introduce the new SysFS

The intention is to add dynamic mechanism for notifying the userspace
about hotplug events. Currently, the DMI (SMBIOS) blobs and ACPI tables
are exposed in the new filesystem.
This commit is contained in:
Liav A 2021-03-13 12:01:44 +02:00 committed by Andreas Kling
parent dc6defa7af
commit 92c0dab5ab
13 changed files with 839 additions and 202 deletions

View file

@ -10,6 +10,7 @@
#include <Kernel/FileSystem/Ext2FileSystem.h>
#include <Kernel/FileSystem/Plan9FileSystem.h>
#include <Kernel/FileSystem/ProcFS.h>
#include <Kernel/FileSystem/SysFS.h>
#include <Kernel/FileSystem/TmpFS.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
@ -89,6 +90,8 @@ KResultOr<FlatPtr> Process::sys$mount(Userspace<const Syscall::SC_mount_params*>
fs = DevPtsFS::create();
} else if (fs_type == "dev" || fs_type == "DevFS") {
fs = DevFS::create();
} else if (fs_type == "sys" || fs_type == "SysFS") {
fs = SysFS::create();
} else if (fs_type == "tmp" || fs_type == "TmpFS") {
fs = TmpFS::create();
} else {