mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
Kernel+SystemServer: Defer creation of device nodes to userspace
Don't create these device nodes in the Kernel, so we essentially enforce userspace (SystemServer) to take control of this operation and to decide how to create these device nodes. This makes the DevFS to resemble linux devtmpfs, and allows us to remove a bunch of unneeded overriding implementations of device name creation in the Kernel.
This commit is contained in:
parent
fcc046047f
commit
e0d712c6f7
Notes:
sideshowbarker
2024-07-18 04:29:12 +09:00
Author: https://github.com/supercomputer7
Commit: e0d712c6f7
Pull-request: https://github.com/SerenityOS/serenity/pull/9399
7 changed files with 144 additions and 45 deletions
|
@ -276,6 +276,7 @@ KResultOr<NonnullRefPtr<OpenFileDescription>> VirtualFileSystem::open(StringView
|
|||
}
|
||||
auto description = TRY(device->open(options));
|
||||
description->set_original_inode({}, inode);
|
||||
description->set_original_custody({}, custody);
|
||||
return description;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue