diff options
author | Liav A <liavalb@gmail.com> | 2022-05-13 03:26:36 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-06 20:11:05 +0100 |
commit | b4e409f721bce08b810a848c35d275c4ef692432 (patch) | |
tree | 31e9ce007c77c6154f8972afdc04cc7a44d91a1c /Kernel/Graphics/DisplayConnector.cpp | |
parent | f62cd52d12e67309ea179c3a812a1a4e927d5dbe (diff) | |
download | serenity-b4e409f721bce08b810a848c35d275c4ef692432.zip |
Kernel/Graphics: Drop support for the DisplayConnector write interface
The WindowServer doesn't use this interface anymore and therefore it's
not used by any userspace application, so let's remove this stale method
to ensure we don't have to bother with it anymore.
Diffstat (limited to 'Kernel/Graphics/DisplayConnector.cpp')
-rw-r--r-- | Kernel/Graphics/DisplayConnector.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Kernel/Graphics/DisplayConnector.cpp b/Kernel/Graphics/DisplayConnector.cpp index 31ae25e0b7..4365575475 100644 --- a/Kernel/Graphics/DisplayConnector.cpp +++ b/Kernel/Graphics/DisplayConnector.cpp @@ -48,18 +48,10 @@ ErrorOr<size_t> DisplayConnector::read(OpenFileDescription&, u64, UserOrKernelBu { return Error::from_errno(ENOTIMPL); } -ErrorOr<size_t> DisplayConnector::write(OpenFileDescription&, u64 offset, UserOrKernelBuffer const& framebuffer_data, size_t length) + +ErrorOr<size_t> DisplayConnector::write(OpenFileDescription&, u64, UserOrKernelBuffer const&, size_t) { - SpinlockLocker locker(m_control_lock); - // FIXME: We silently ignore the request if we are in console mode. - // WindowServer is not ready yet to handle errors such as EBUSY currently. - if (console_mode()) { - return length; - } - if (offset + length > m_framebuffer_region->size()) - return Error::from_errno(EOVERFLOW); - TRY(framebuffer_data.read(m_framebuffer_data + offset, 0, length)); - return length; + return Error::from_errno(ENOTIMPL); } void DisplayConnector::will_be_destroyed() |