diff options
author | Liav A <liavalb@gmail.com> | 2021-08-14 07:01:19 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-08 00:42:20 +0200 |
commit | 21b6d84ff071779a90e351e9959c80e09193ec89 (patch) | |
tree | e545cf3e5b278bf0b258a97ccaca70d8c4590eed /Kernel/Graphics/VirtIOGPU | |
parent | 4f04cb98c1281ca7658ab60569898a5f83afc7b7 (diff) | |
download | serenity-21b6d84ff071779a90e351e9959c80e09193ec89.zip |
Kernel/Devices: Remove required_mode and device_name methods
These methods are no longer needed because SystemServer is able to
populate the DevFS on its own.
Device absolute_path no longer assume a path to the /dev location,
because it really should not assume any path to a Device node.
Because StorageManagement still needs to know the storage name, we
declare a virtual method only for StorageDevices to override, but this
technique should really be removed later on.
Diffstat (limited to 'Kernel/Graphics/VirtIOGPU')
-rw-r--r-- | Kernel/Graphics/VirtIOGPU/FrameBufferDevice.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Graphics/VirtIOGPU/FrameBufferDevice.h b/Kernel/Graphics/VirtIOGPU/FrameBufferDevice.h index 9f0a3433dd..a47f601250 100644 --- a/Kernel/Graphics/VirtIOGPU/FrameBufferDevice.h +++ b/Kernel/Graphics/VirtIOGPU/FrameBufferDevice.h @@ -68,9 +68,6 @@ private: virtual KResultOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; }; virtual void start_request(AsyncBlockDeviceRequest& request) override { request.complete(AsyncDeviceRequest::Failure); } - virtual mode_t required_mode() const override { return 0666; } - virtual String device_name() const override { return String::formatted("fb{}", minor()); } - static bool is_valid_buffer_index(int buffer_index) { return buffer_index == 0 || buffer_index == 1; |