diff options
author | Liav A <liavalb@gmail.com> | 2021-03-13 12:01:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-29 20:53:59 +0200 |
commit | 92c0dab5ab45ff0db8317439ea2f8bc3d96158c4 (patch) | |
tree | c2f13dc2ba91ebef415d3369867836eb4256b0ca /Kernel/Syscalls | |
parent | dc6defa7af6ee0a4fe9331bf46311ba29f3df01b (diff) | |
download | serenity-92c0dab5ab45ff0db8317439ea2f8bc3d96158c4.zip |
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.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/mount.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Syscalls/mount.cpp b/Kernel/Syscalls/mount.cpp index c6b9f7c5b8..f42c1bb213 100644 --- a/Kernel/Syscalls/mount.cpp +++ b/Kernel/Syscalls/mount.cpp @@ -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 { |