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:
Liav A 2021-08-14 05:04:56 +03:00 committed by Andreas Kling
parent fcc046047f
commit e0d712c6f7
Notes: sideshowbarker 2024-07-18 04:29:12 +09:00
7 changed files with 144 additions and 45 deletions

View file

@ -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;
}