mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
ProcFS: Do not assume there is one of it
The complication is around /proc/sys/ variables, which were attached to inodes. Now they're their own thing, and the corresponding inodes are lazily created (as all other ProcFS inodes are) and simply refer to them by index.
This commit is contained in:
parent
1febd59f83
commit
37cc80fb96
Notes:
sideshowbarker
2024-07-19 12:39:39 +09:00
Author: https://github.com/bugaevc
Commit: 37cc80fb96
Pull-request: https://github.com/SerenityOS/serenity/pull/456
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 144 additions and 135 deletions
|
@ -119,7 +119,9 @@ VFS* vfs;
|
|||
dbgprintf("Loaded ksyms\n");
|
||||
|
||||
// TODO: we should mount these from SystemServer
|
||||
vfs->mount(ProcFS::the(), "/proc");
|
||||
auto procfs = ProcFS::create();
|
||||
procfs->initialize();
|
||||
vfs->mount(procfs, "/proc");
|
||||
vfs->mount(DevPtsFS::the(), "/dev/pts");
|
||||
|
||||
auto tmpfs = TmpFS::create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue