summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/OpenFileDescription.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-08-14 05:04:56 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-08 00:42:20 +0200
commite0d712c6f7525f0872e161ab6f22bb31b49b49ec (patch)
treebbb7dcf7cef9feac1d21fb5e10c013bce4851c7f /Kernel/FileSystem/OpenFileDescription.h
parentfcc046047f3bf5b061b5587a1456958b6ee922f8 (diff)
downloadserenity-e0d712c6f7525f0872e161ab6f22bb31b49b49ec.zip
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.
Diffstat (limited to 'Kernel/FileSystem/OpenFileDescription.h')
-rw-r--r--Kernel/FileSystem/OpenFileDescription.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/OpenFileDescription.h b/Kernel/FileSystem/OpenFileDescription.h
index 04c3c08e61..2c3f1b1cfa 100644
--- a/Kernel/FileSystem/OpenFileDescription.h
+++ b/Kernel/FileSystem/OpenFileDescription.h
@@ -119,6 +119,7 @@ public:
OwnPtr<OpenFileDescriptionData>& data() { return m_data; }
void set_original_inode(Badge<VirtualFileSystem>, NonnullRefPtr<Inode>&& inode) { m_inode = move(inode); }
+ void set_original_custody(Badge<VirtualFileSystem>, Custody& custody);
KResult truncate(u64);