From cba0a23db974391b19a3d0f6effb8fd020892a93 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 26 May 2023 20:36:35 +0200 Subject: [PATCH] kernel: Make the framebuffer a block device --- kernel/src/fs/devices/FramebufferDevice.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/src/fs/devices/FramebufferDevice.h b/kernel/src/fs/devices/FramebufferDevice.h index 9e65d622..ade9a913 100644 --- a/kernel/src/fs/devices/FramebufferDevice.h +++ b/kernel/src/fs/devices/FramebufferDevice.h @@ -13,6 +13,11 @@ class FramebufferDevice : public Device bool blocking() const override; + bool is_block_device() const override + { + return true; + } + Result ioctl(int request, void* arg) override; usize size() const override;