summaryrefslogtreecommitdiff
path: root/Kernel/Devices/MemoryDevice.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-03-17 13:18:51 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-17 23:22:42 +0100
commitb05b4d4b249e7f0025ddf27544c1972e32af80c8 (patch)
treea4437fdb7b200fa19b6f5368f0b894761fd2ab09 /Kernel/Devices/MemoryDevice.h
parent999c57ef2dffb36e15c51aa99d4921122caad6ee (diff)
downloadserenity-b05b4d4b249e7f0025ddf27544c1972e32af80c8.zip
Kernel: Refactor storage stack with u64 as file operations offset
Diffstat (limited to 'Kernel/Devices/MemoryDevice.h')
-rw-r--r--Kernel/Devices/MemoryDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/MemoryDevice.h b/Kernel/Devices/MemoryDevice.h
index cd14c864d6..37b1f1dfc4 100644
--- a/Kernel/Devices/MemoryDevice.h
+++ b/Kernel/Devices/MemoryDevice.h
@@ -50,8 +50,8 @@ private:
virtual bool can_read(const FileDescription&, size_t) const override { return true; }
virtual bool can_write(const FileDescription&, size_t) const override { return false; }
virtual bool is_seekable() const { return true; }
- virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) override;
- virtual KResultOr<size_t> write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t) override { return -EINVAL; }
+ virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override;
+ virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return -EINVAL; }
virtual void did_seek(FileDescription&, off_t) override;