From 8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 29 Apr 2019 13:58:40 +0200 Subject: Kernel: Have File virtuals take a FileDescriptor& rather than a Process&. This will allow us to implement different behaviors depending on the role of the descriptor a File is being accessed through. --- Kernel/Devices/DebugLogDevice.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Kernel/Devices/DebugLogDevice.h') diff --git a/Kernel/Devices/DebugLogDevice.h b/Kernel/Devices/DebugLogDevice.h index dd6db9f4d2..9b09205074 100644 --- a/Kernel/Devices/DebugLogDevice.h +++ b/Kernel/Devices/DebugLogDevice.h @@ -9,9 +9,9 @@ public: private: // ^CharacterDevice - virtual ssize_t read(Process&, byte*, ssize_t) override { return 0; } - virtual ssize_t write(Process&, const byte*, ssize_t) override; - virtual bool can_write(Process&) const override { return true; } - virtual bool can_read(Process&) const override { return true; } + virtual ssize_t read(FileDescriptor&, byte*, ssize_t) override { return 0; } + virtual ssize_t write(FileDescriptor&, const byte*, ssize_t) override; + virtual bool can_write(FileDescriptor&) const override { return true; } + virtual bool can_read(FileDescriptor&) const override { return true; } virtual const char* class_name() const override { return "DebugLogDevice"; } }; -- cgit v1.2.3