diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:39:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:53:14 +0200 |
commit | 4a9c18afb9b9c7fde698e93700e661d66e3ed34d (patch) | |
tree | be50cd7629139e1c3d6c7df5bcffa7a0d5a1e898 /Kernel/Devices/KCOVDevice.h | |
parent | dbd639a2d8d288691e6cffd29e4ff2ec0bae6982 (diff) | |
download | serenity-4a9c18afb9b9c7fde698e93700e661d66e3ed34d.zip |
Kernel: Rename FileDescription => OpenFileDescription
Dr. POSIX really calls these "open file description", not just
"file description", so let's call them exactly that. :^)
Diffstat (limited to 'Kernel/Devices/KCOVDevice.h')
-rw-r--r-- | Kernel/Devices/KCOVDevice.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Kernel/Devices/KCOVDevice.h b/Kernel/Devices/KCOVDevice.h index f2492797c7..bde9f3ce24 100644 --- a/Kernel/Devices/KCOVDevice.h +++ b/Kernel/Devices/KCOVDevice.h @@ -22,8 +22,8 @@ public: static void free_process(); // ^File - KResultOr<Memory::Region*> mmap(Process&, FileDescription&, Memory::VirtualRange const&, u64 offset, int prot, bool shared) override; - KResultOr<NonnullRefPtr<FileDescription>> open(int options) override; + KResultOr<Memory::Region*> mmap(Process&, OpenFileDescription&, Memory::VirtualRange const&, u64 offset, int prot, bool shared) override; + KResultOr<NonnullRefPtr<OpenFileDescription>> open(int options) override; // ^Device virtual mode_t required_mode() const override { return 0660; } @@ -32,12 +32,12 @@ public: protected: virtual StringView class_name() const override { return "KCOVDevice"; } - virtual bool can_read(const FileDescription&, size_t) const override final { return true; } - virtual bool can_write(const FileDescription&, size_t) const override final { return true; } + virtual bool can_read(const OpenFileDescription&, size_t) const override final { return true; } + virtual bool can_write(const OpenFileDescription&, size_t) const override final { return true; } virtual void start_request(AsyncBlockDeviceRequest& request) override final { request.complete(AsyncDeviceRequest::Failure); } - virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override { return EINVAL; } - virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; } - virtual KResult ioctl(FileDescription&, unsigned request, Userspace<void*> arg) override; + virtual KResultOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override { return EINVAL; } + virtual KResultOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; } + virtual KResult ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) override; private: KCOVDevice(); |