mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Kernel: Introduce the DevFS
The DevFS along with DevPtsFS give a complete solution for populating device nodes in /dev. The main purpose of DevFS is to eliminate the need of device nodes generation when building the system. Later on, DevFS will assist with exposing disk partition nodes.
This commit is contained in:
parent
18e77aa285
commit
247517cd4a
7 changed files with 774 additions and 55 deletions
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/DevFS.h>
|
||||
#include <Kernel/FileSystem/DevPtsFS.h>
|
||||
#include <Kernel/FileSystem/Ext2FileSystem.h>
|
||||
#include <Kernel/FileSystem/Plan9FileSystem.h>
|
||||
|
@ -104,6 +105,8 @@ int Process::sys$mount(Userspace<const Syscall::SC_mount_params*> user_params)
|
|||
fs = ProcFS::create();
|
||||
} else if (fs_type == "devpts" || fs_type == "DevPtsFS") {
|
||||
fs = DevPtsFS::create();
|
||||
} else if (fs_type == "dev" || fs_type == "DevFS") {
|
||||
fs = DevFS::create();
|
||||
} else if (fs_type == "tmp" || fs_type == "TmpFS") {
|
||||
fs = TmpFS::create();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue